mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-20 15:02:33 +00:00
Merge pull request #129 from paulrd/patch-1
Wrong 'error' variable is being read in socket_server.go
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user