forked from cerc-io/laconicd-deprecated
rpc: add ws log on read loop break (#1127)
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
parent
20f9b04006
commit
a8d3805ddf
@ -181,6 +181,7 @@ func (s *websocketsServer) readLoop(wsConn *wsConn) {
|
||||
_, mb, err := wsConn.ReadMessage()
|
||||
if err != nil {
|
||||
_ = wsConn.Close()
|
||||
s.logger.Error("read message error, breaking read loop", "error", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user