1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

move send out of lock

This commit is contained in:
Kane York 2017-09-15 13:20:28 -07:00
parent fd357ae6f2
commit e0ae732f35

View file

@ -162,10 +162,10 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
client.ClientID = clientID
client.VersionString = copyString(version)
client.Version = VersionFromString(version)
uniqueUserChannel <- client.ClientID
client.HelloOK = true
client.Mutex.Unlock()
uniqueUserChannel <- client.ClientID
SubscribeGlobal(client)
jsTime := float64(time.Now().UnixNano()/1000) / 1000