diff --git a/grace.go b/grace.go index af0cdc2..0d77799 100644 --- a/grace.go +++ b/grace.go @@ -103,6 +103,7 @@ func (l *listener) enabler() { } if l.closeRequest == nil && counter == 0 { close(l.allClosed) + close(l.counter) break } }