1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-09 20:17:21 +00:00

Missed q.lock.Unlock() will cause panic (#9706)

This commit is contained in:
zeripath
2020-01-11 17:05:24 +00:00
committed by GitHub
parent 7eaba6ba8a
commit 0e53a16cca

View File

@ -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" {