forked from gitea/gitea
		
	Fix missing unlock in uniquequeue (#9790)
This commit is contained in:
		
							parent
							
								
									9343d2fc85
								
							
						
					
					
						commit
						e7923c4bc0
					
				| @ -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{}{} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zeripath
						zeripath