diff --git a/app/internal/proxymux/mux.go b/app/internal/proxymux/mux.go index 4070e13..2d94a76 100644 --- a/app/internal/proxymux/mux.go +++ b/app/internal/proxymux/mux.go @@ -248,6 +248,11 @@ func (l *subListener) Addr() net.Addr { // Close implements net.Listener.Close. // Upstream should use close(l.acceptChan) instead. func (l *subListener) Close() error { + select { + case <-l.closeChan: + return nil + default: + } close(l.closeChan) return nil }