mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-15 11:41:14 +02:00
fix(admin): exit dev test queue producer loop when context is cancelled (#38451)
Co-authored-by: Kadajett <jeremy@semfora.ai>
This commit is contained in:
co-authored by
Kadajett
parent
880ddb5724
commit
9fa2bff5fd
@@ -56,6 +56,7 @@ func initTestQueueOnce() {
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case <-time.After(500 * time.Millisecond):
|
||||
if adding {
|
||||
if testQueue.GetQueueItemNumber() == qs.Length {
|
||||
|
||||
Reference in New Issue
Block a user