Update socket_server.go

This is likely related to #125
This commit is contained in:
Paul
2017-11-09 13:16:35 -04:00
committed by GitHub
parent c9612f094b
commit 43c64163d8

View File

@ -117,7 +117,7 @@ func (s *SocketServer) acceptConnectionsRoutine() {
go func() {
// Wait until signal to close connection
errClose := <-closeConn
if err == io.EOF {
if errClose == io.EOF {
s.Logger.Error("Connection was closed by client")
} else if errClose != nil {
s.Logger.Error("Connection error", "error", errClose)