From 0e53a16cca32e3750089b9aebf8b62600517c4f4 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 11 Jan 2020 17:05:24 +0000 Subject: [PATCH] Missed q.lock.Unlock() will cause panic (#9706) --- modules/queue/queue_wrapped.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/queue/queue_wrapped.go b/modules/queue/queue_wrapped.go index d0b93b54d0c..0e948bae280 100644 --- a/modules/queue/queue_wrapped.go +++ b/modules/queue/queue_wrapped.go @@ -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" {