ing
This commit is contained in:
parent
29455b69ca
commit
17223f4bb9
|
@ -260,7 +260,7 @@ func handleRead(s *Server, conn *server.Conn, stopChan <-chan struct{}, doneChan
|
||||||
case <-stopChan:
|
case <-stopChan:
|
||||||
conn.Close()
|
conn.Close()
|
||||||
<-readMessageChan
|
<-readMessageChan
|
||||||
break
|
return
|
||||||
case <-readMessageChan:
|
case <-readMessageChan:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ func handleRead(s *Server, conn *server.Conn, stopChan <-chan struct{}, doneChan
|
||||||
if server.IsUnexpectedCloseError(err, server.CloseGoingAway, server.CloseAbnormalClosure) {
|
if server.IsUnexpectedCloseError(err, server.CloseGoingAway, server.CloseAbnormalClosure) {
|
||||||
logging.Logger().Debugf(s.serverMessage(fmt.Sprintf("Read error %v", err)))
|
logging.Logger().Debugf(s.serverMessage(fmt.Sprintf("Read error %v", err)))
|
||||||
}
|
}
|
||||||
break
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
readChan <- message
|
readChan <- message
|
||||||
|
|
Loading…
Reference in New Issue
Block a user