mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-03 18:27:44 +00:00
wsutil: Fixed irregular close 1000 error
This commit is contained in:
parent
b8994ed0da
commit
5a76b21ecf
|
@ -182,11 +182,6 @@ func startReadLoop(conn *websocket.Conn, eventCh chan<- Event) {
|
|||
return
|
||||
}
|
||||
|
||||
// Check if the error is a normal one:
|
||||
if websocket.IsCloseError(err, websocket.CloseNormalClosure) {
|
||||
return
|
||||
}
|
||||
|
||||
// Unusual error; log and exit:
|
||||
eventCh <- Event{nil, errors.Wrap(err, "WS error")}
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue