mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
mirror: interrupt goroutine when done
This should avoid deadlocking when context is destroyed.
This commit is contained in:
+1
-1
@@ -495,7 +495,7 @@ func apiMirrorsUpdate(c *gin.Context) {
|
|||||||
task.Done = true
|
task.Done = true
|
||||||
taskFinished <- task
|
taskFinished <- task
|
||||||
case <-context.Done():
|
case <-context.Done():
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user