Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 5, 2023
1 parent d075cff commit 35b8474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appservice/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (as *AppService) StartWebsocket(baseURL string, onConnect func()) error {
}

closeErr := <-closeChan
if onConnectDone.Load() {
if !onConnectDone.Load() {
as.Log.Warn().Msg("Websocket closed before onConnect returned, things may explode")
}

Expand Down

0 comments on commit 35b8474

Please sign in to comment.