This commit is contained in:
crusader 2018-04-04 17:12:00 +09:00
parent 29455b69ca
commit 17223f4bb9

View File

@ -260,7 +260,7 @@ func handleRead(s *Server, conn *server.Conn, stopChan <-chan struct{}, doneChan
case <-stopChan:
conn.Close()
<-readMessageChan
break
return
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) {
logging.Logger().Debugf(s.serverMessage(fmt.Sprintf("Read error %v", err)))
}
break
return
}
readChan <- message