mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Missed q.lock.Unlock() will cause panic (#9705)
This commit is contained in:
		@@ -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" {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user