Fix Workerpool deadlock (#10283)

* Prevent deadlock on boost

* Force a boost in testchannelqueue
This commit is contained in:
zeripath authored and GitHub committed 2020-02-15 18:44:58 +00:00
1 parent 15614a8368
commit 88986746d5
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -132,8 +132,8 @@ func (p *WorkerPool) pushBoost(data Data) {
p.blockTimeout /= 2
p.lock.Unlock()
}()
p.addWorkers(ctx, boost)
p.lock.Unlock()
p.addWorkers(ctx, boost)
p.dataChan <- data
}
}