Merge pull request #129 from paulrd/patch-1

Wrong 'error' variable is being read in socket_server.go
This commit is contained in:
Ethan Buchman
2017-11-14 16:54:49 +00:00
committed by GitHub
+1 -1
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)