mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
mirror: interrupt goroutine when done
This should avoid deadlocking when context is destroyed.
This commit is contained in:
1 parent
19f7b0fe8d
commit
79a7cf864e
1 file changed
+1
-1
+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