diff options
author | zeripath <art27@cantab.net> | 2020-01-15 21:58:33 +0000 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2020-01-15 23:58:33 +0200 |
commit | e7923c4bc06ecf887a9405e9c7cc8e7e482762d4 (patch) | |
tree | bc543cf7034cc0111d7cb5a6f45e9328503c4e0e /modules/sync | |
parent | 9343d2fc857e884180e03c7f42767302cec0f06d (diff) | |
download | gitea-e7923c4bc06ecf887a9405e9c7cc8e7e482762d4.tar.gz gitea-e7923c4bc06ecf887a9405e9c7cc8e7e482762d4.zip |
Fix missing unlock in uniquequeue (#9790)
Diffstat (limited to 'modules/sync')
-rw-r--r-- | modules/sync/unique_queue.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/sync/unique_queue.go b/modules/sync/unique_queue.go index 14644c7d4e..d41726b5af 100644 --- a/modules/sync/unique_queue.go +++ b/modules/sync/unique_queue.go @@ -82,6 +82,7 @@ func (q *UniqueQueue) AddFunc(id interface{}, fn func()) { idStr := com.ToStr(id) q.table.lock.Lock() if _, ok := q.table.pool[idStr]; ok { + q.table.lock.Unlock() return } q.table.pool[idStr] = struct{}{} |