fix: finish queue cleanup before stop returns
This commit is contained in:
@@ -226,6 +226,7 @@ func (q *Queue) Stop(contexts ...context.Context) error {
|
||||
case <-ctx.Done():
|
||||
if shutdownOwner && workCancel != nil {
|
||||
workCancel()
|
||||
<-done
|
||||
}
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user