mirror of https://github.com/tidwall/tile38.git
Fixed condition
This commit is contained in:
parent
d1288f834c
commit
4d446aeb77
|
@ -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 && (websocket && err != io.ErrUnexpectedEOF) {
|
||||
if err != io.EOF && !(websocket && err == io.ErrUnexpectedEOF) {
|
||||
log.Error(err)
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue