From 5a76b21ecff0085e5ee7873fbc228974abcdbad6 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Mon, 30 Nov 2020 21:49:55 -0800 Subject: [PATCH] wsutil: Fixed irregular close 1000 error --- utils/wsutil/conn.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/utils/wsutil/conn.go b/utils/wsutil/conn.go index b698915..00399f5 100644 --- a/utils/wsutil/conn.go +++ b/utils/wsutil/conn.go @@ -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