mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +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
|
||||
taskFinished <- task
|
||||
case <-context.Done():
|
||||
continue
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user