Fixed condition

This commit is contained in:
w1n2k 2017-01-13 00:22:14 +03:00
parent d1288f834c
commit 4d446aeb77
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 {
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