Fixed [Unexpected] EOF bug with websockets (#126)

* Fixed [Unexpected] EOF bug with websockets

* Fixed condition
This commit is contained in:
Pavel Makarenko 2017-01-13 18:26:58 +03:00 committed by Josh Baker
parent e9fa4ff0b3
commit 06dbb14562
1 changed files with 1 additions and 1 deletions

View File

@ -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