1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-25 12:08:30 +00:00

Merge pull request #229 from riking/singleflight

Singleflight
This commit is contained in:
Mike 2017-09-15 16:02:12 -04:00 committed by GitHub
commit 107fa5cbb0

View file

@ -139,6 +139,8 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
} else if _, ok := ary[1].(bool); ok {
// opt out
client.ClientID = AnonymousClientID
} else if ary[1] == nil {
client.ClientID = uuid.NewV4()
} else {
err = ErrExpectedTwoStrings
return