This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
gitea
mirror of
https://github.com/go-gitea/gitea.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
210
Wiki
Activity
Browse Source
Fix missing unlock in uniquequeue (
#9791
)
tags/v1.11.0-rc2
zeripath
4 years ago
parent
6d1f7e90cf
commit
dbe6136348
1 changed files
with
1 additions
and
0 deletions
Split View
Show Diff Stats
1
0
modules/sync/unique_queue.go
+ 1
- 0
modules/sync/unique_queue.go
View File
@@ -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{}{}
Write
Preview
Loading…
Cancel
Save