fix: finish queue cleanup before stop returns

This commit is contained in:
MiMoCode
2026-07-10 19:28:03 +08:00
parent 0520f75cdf
commit 3717632f27
2 changed files with 2 additions and 9 deletions
+1
View File
@@ -226,6 +226,7 @@ func (q *Queue) Stop(contexts ...context.Context) error {
case <-ctx.Done():
if shutdownOwner && workCancel != nil {
workCancel()
<-done
}
return ctx.Err()
}