fix: fixing shut down deadlock
This commit is contained in:
@@ -456,7 +456,7 @@ func (wsClient *SafeWebsocketClient) Close() error {
|
||||
wsClient.conn.Close()
|
||||
}
|
||||
wsClient.isConnected = false
|
||||
// close(wsClient.dataChannel)
|
||||
close(wsClient.dataChannel)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user