We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16688b7 commit 4e23907Copy full SHA for 4e23907
1 file changed
internals/server/websocket.go
@@ -61,7 +61,8 @@ func register(req *http.Request, socket *websocket.Conn) string {
61
clientsMutex.Unlock()
62
63
waitersMutex.Lock()
64
- if ch, ok := waiters[clientID]; ok {
+ ch, ok := waiters[clientID]
65
+ if ok {
66
select {
67
case ch <- socket:
68
default:
0 commit comments