mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-16 14:11:15 +00: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:
@@ -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