Browse Source

Merge pull request #129 from paulrd/patch-1

Wrong 'error' variable is being read in socket_server.go
pull/1780/head
Ethan Buchman 7 years ago
committed by GitHub
parent
commit
3972635c23
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/socket_server.go

+ 1
- 1
server/socket_server.go View File

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


Loading…
Cancel
Save