From d710f745bd5550fccfc3335bc744cea1ded12d06 Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Wed, 27 Mar 2013 18:43:33 -0700 Subject: [PATCH] also close the counter channel to raise potential data races --- grace.go | 1 + 1 file changed, 1 insertion(+) 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 } }