From 06dbb1456224f5c4f1b0c7c0dce31042d3f57a84 Mon Sep 17 00:00:00 2001 From: Pavel Makarenko Date: Fri, 13 Jan 2017 18:26:58 +0300 Subject: [PATCH] Fixed [Unexpected] EOF bug with websockets (#126) * Fixed [Unexpected] EOF bug with websockets * Fixed condition --- controller/live.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/live.go b/controller/live.go index 8c500905..0a53f44d 100644 --- a/controller/live.go +++ b/controller/live.go @@ -116,7 +116,7 @@ func (c *Controller) goLive(inerr error, conn net.Conn, rd *server.AnyReaderWrit for { v, err := rd.ReadMessage() if err != nil { - if err != io.EOF { + if err != io.EOF && !(websocket && err == io.ErrUnexpectedEOF) { log.Error(err) } return