From 048cf66ba13db07dd74723690891c2f9e32b841d Mon Sep 17 00:00:00 2001 From: Ingmar Stein Date: Tue, 6 Aug 2024 23:35:26 +0200 Subject: [PATCH] Don't print an error message when gracefully shutting down --- pkg/multiplexer/multiplexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }