1
0
Fork 0
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:
diamondburned 2020-11-30 21:49:55 -08:00
parent b8994ed0da
commit 5a76b21ecf

View file

@ -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