Skip to content

Commit 33e488a

Browse files
committed
Unlock on exitListenWebSocket early return
1 parent 2754885 commit 33e488a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

graphql/websocket.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func (w *webSocketClient) listenWebSocket() {
125125
w.exitListenWebSocketMu.Lock()
126126
if w.exitListenWebSocket {
127127
close(w.errChan)
128+
w.exitListenWebSocketMu.Unlock()
128129
return
129130
}
130131
w.exitListenWebSocketMu.Unlock()

0 commit comments

Comments
 (0)