Skip to content

Commit

Permalink
Merge pull request #53 from balena-io/ignore-eof
Browse files Browse the repository at this point in the history
do not pass EOF errors to handler
  • Loading branch information
wrboyce authored May 6, 2019
2 parents 734c64b + c8b3030 commit 7303d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func New(keyDir, shell string, passEnv bool, shellCreds *syscall.Credential, ver
}

func (s *Server) handleError(err error, tags map[string]string) {
if s.errorHandler != nil {
if s.errorHandler != nil && err.Error() != "EOF" {
s.errorHandler(err, tags)
}
}
Expand Down

0 comments on commit 7303d09

Please sign in to comment.