Skip to content

Commit

Permalink
Merge pull request #79 from jdholtz/fix-listener-stop
Browse files Browse the repository at this point in the history
Fix listener errors when manually stopping
  • Loading branch information
nicocha30 authored Jun 21, 2024
2 parents 5900671 + 776cf71 commit 6a9fdf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/proxy/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ func Run() {
}
return
}

logrus.WithFields(logrus.Fields{"listener": listener.String()}).Warning("Listener ended without error.")
return
}
}()

Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (l *LigoloListener) relayTCP() error {
if err := ligoloProtocol.Decode(); err != nil {
if err == io.EOF {
// Listener closed.
return err
return nil
}
return err
}
Expand Down

0 comments on commit 6a9fdf4

Please sign in to comment.