diff --git a/pkg/multiplexer/multiplexer.go b/pkg/multiplexer/multiplexer.go index 04077c5..550f554 100644 --- a/pkg/multiplexer/multiplexer.go +++ b/pkg/multiplexer/multiplexer.go @@ -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 } }