From eb23d5c832f62233fe5d66e762f3f6e40007541a Mon Sep 17 00:00:00 2001 From: zephinzer <1324745-zephinzer@users.noreply.gitlab.com> Date: Tue, 29 Jun 2021 15:54:14 +0800 Subject: [PATCH] added a continue for when the next reader receives an unexpected eof --- pkg/xtermjs/handler_websocket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/xtermjs/handler_websocket.go b/pkg/xtermjs/handler_websocket.go index eff8e74..b456b2c 100644 --- a/pkg/xtermjs/handler_websocket.go +++ b/pkg/xtermjs/handler_websocket.go @@ -135,6 +135,7 @@ func GetHandler(opts HandlerOpts) func(http.ResponseWriter, *http.Request) { if err != nil { if !connectionClosed { clog.Warnf("failed to get next reader: %s", err) + continue } return }