Fixed [Unexpected] EOF bug with websockets

This commit is contained in:
w1n2k 2017-01-12 17:00:39 +03:00
parent c02609ad44
commit e6b0e2efa5
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 { for {
v, err := rd.ReadMessage() v, err := rd.ReadMessage()
if err != nil { if err != nil {
if err != io.EOF { if err != io.EOF && (websocket && err != io.ErrUnexpectedEOF) {
log.Error(err) log.Error(err)
} }
return return