Skip to content

Commit

Permalink
Don't print an error message when gracefully shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
IngmarStein committed Aug 6, 2024
1 parent 90ce960 commit 048cf66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/multiplexer/multiplexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ L:
for {
conn, err := mux.l.Accept()
if err != nil {
logrus.Error(err)
select {
case <-mux.quit:
logrus.Info("no more connections will be accepted")
return nil
default:
logrus.Error(err)
goto L
}
}
Expand Down

0 comments on commit 048cf66

Please sign in to comment.