From 3c636b0397603b8019e1a2c95a4ce5424ff950cc Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Thu, 21 Mar 2019 14:45:34 +0300 Subject: Update static_pool.go allow pool to finish slow tasks --- static_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3