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 {
|
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
|
||||||
|
|
Loading…
Reference in New Issue