mirror of https://github.com/tidwall/tile38.git
Fixed [Unexpected] EOF bug with websockets
This commit is contained in:
parent
c02609ad44
commit
e6b0e2efa5
|
@ -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