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

lunny/display_deleted_branch2
zeripath 4 years ago committed by GitHub
parent 7eaba6ba8a
commit 0e53a16cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save