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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)