This commit is contained in:
Daniel Ponte 2022-12-20 21:24:14 -05:00
parent 5570e53d99
commit 2ddac95715

View file

@ -108,9 +108,9 @@ func (ws *wsSession) Go() error {
for {
_, rdr, err := ws.NextReader()
switch {
case err == nil:
case websocket.IsCloseError(err, websocket.CloseGoingAway):
return nil
case err == nil:
case err != nil:
log.Error().Err(err).Str("remote", ws.ec.Request().RemoteAddr).Msg("websocket read fail")
return err