summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static_pool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/static_pool.go b/static_pool.go
index be1a6f3b..c9473699 100644
--- a/static_pool.go
+++ b/static_pool.go
@@ -152,8 +152,8 @@ func (p *StaticPool) Destroy() {
atomic.AddInt32(&p.inDestroy, 1)
p.tmu.Lock()
- close(p.destroy)
p.tasks.Wait()
+ close(p.destroy)
p.tmu.Unlock()
var wg sync.WaitGroup