We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be83ff7 commit 16688b7Copy full SHA for 16688b7
1 file changed
internals/server/websocket.go
@@ -76,7 +76,8 @@ func register(req *http.Request, socket *websocket.Conn) string {
76
77
func waitForClient(clientID string, timeout time.Duration) (*websocket.Conn, error) {
78
clientsMutex.Lock()
79
- if conn, ok := clients[clientID]; ok {
+ conn, ok := clients[clientID]
80
+ if ok {
81
clientsMutex.Unlock()
82
return conn, nil
83
}
0 commit comments