diff options
author | zeripath <art27@cantab.net> | 2020-02-15 18:44:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 18:44:58 +0000 |
commit | 88986746d51ef9bf7ea5d812bb889f8cc668b4f2 (patch) | |
tree | 974333233a8105c5e3a880f9ca52ae3b552bc396 /modules/queue/workerpool.go | |
parent | 15614a83682f972bbe900cae935fdc47c4e80e2e (diff) | |
download | gitea-88986746d51ef9bf7ea5d812bb889f8cc668b4f2.tar.gz gitea-88986746d51ef9bf7ea5d812bb889f8cc668b4f2.zip |
Fix Workerpool deadlock (#10283)
* Prevent deadlock on boost
* Force a boost in testchannelqueue
Diffstat (limited to 'modules/queue/workerpool.go')
-rw-r--r-- | modules/queue/workerpool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/queue/workerpool.go b/modules/queue/workerpool.go index 63ec897481..952e87681e 100644 --- a/modules/queue/workerpool.go +++ b/modules/queue/workerpool.go @@ -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 } } |