diff options
author | zeripath <art27@cantab.net> | 2020-01-11 17:05:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-11 17:05:07 +0000 |
commit | edd31770aa10207d91405a98c9b97ce14db7b302 (patch) | |
tree | b94c25b7f93faa3dbb76b0553353f24acd3ddf8c /modules | |
parent | f69f5a9f105f655c931b29a57f9ffb257b7edf7c (diff) | |
download | gitea-edd31770aa10207d91405a98c9b97ce14db7b302.tar.gz gitea-edd31770aa10207d91405a98c9b97ce14db7b302.zip |
Missed q.lock.Unlock() will cause panic (#9705)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/queue/queue_wrapped.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/queue/queue_wrapped.go b/modules/queue/queue_wrapped.go index d0b93b54d0..0e948bae28 100644 --- a/modules/queue/queue_wrapped.go +++ b/modules/queue/queue_wrapped.go @@ -62,7 +62,6 @@ func (q *delayedStarter) setInternal(atShutdown func(context.Context, func()), h queue, err := NewQueue(q.underlying, handle, q.cfg, exemplar) if err == nil { q.internal = queue - q.lock.Unlock() break } if err.Error() != "resource temporarily unavailable" { |