Missed q.lock.Unlock() will cause panic (#9706)
This commit is contained in:
parent
7eaba6ba8a
commit
0e53a16cca
1 changed files with 0 additions and 1 deletions
|
@ -62,7 +62,6 @@ func (q *delayedStarter) setInternal(atShutdown func(context.Context, func()), h
|
||||||
queue, err := NewQueue(q.underlying, handle, q.cfg, exemplar)
|
queue, err := NewQueue(q.underlying, handle, q.cfg, exemplar)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
q.internal = queue
|
q.internal = queue
|
||||||
q.lock.Unlock()
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if err.Error() != "resource temporarily unavailable" {
|
if err.Error() != "resource temporarily unavailable" {
|
||||||
|
|
Reference in a new issue