also close the counter channel to raise potential data races

This commit is contained in:
Naitik Shah 2013-03-27 18:43:33 -07:00
parent 40271cd1a7
commit d710f745bd

View File

@ -103,6 +103,7 @@ func (l *listener) enabler() {
} }
if l.closeRequest == nil && counter == 0 { if l.closeRequest == nil && counter == 0 {
close(l.allClosed) close(l.allClosed)
close(l.counter)
break break
} }
} }