mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 09:49:24 +00:00
ignore another closure message
This commit is contained in:
@@ -157,7 +157,8 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
req, err := sigConn.ReadRequest()
|
||||
// normal closure
|
||||
if err != nil {
|
||||
if err == io.EOF || strings.HasSuffix(err.Error(), "use of closed network connection") || websocket.IsCloseError(err, websocket.CloseAbnormalClosure, websocket.CloseGoingAway, websocket.CloseNormalClosure) {
|
||||
if err == io.EOF || strings.HasSuffix(err.Error(), "use of closed network connection") ||
|
||||
websocket.IsCloseError(err, websocket.CloseAbnormalClosure, websocket.CloseGoingAway, websocket.CloseNormalClosure, websocket.CloseNoStatusReceived) {
|
||||
return
|
||||
} else {
|
||||
logger.Errorw("error reading from websocket", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user