mirror of https://github.com/tidwall/tile38.git
Fixed [Unexpected] EOF bug with websockets (#126)
* Fixed [Unexpected] EOF bug with websockets * Fixed condition
This commit is contained in:
parent
e9fa4ff0b3
commit
06dbb14562
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue