mirror: interrupt goroutine when done

This should avoid deadlocking when context is destroyed.
This commit is contained in:
Lorenzo Bolla
2021-05-05 20:38:06 +02:00
parent 19f7b0fe8d
commit 79a7cf864e
+1 -1
View File
@@ -495,7 +495,7 @@ func apiMirrorsUpdate(c *gin.Context) {
task.Done = true
taskFinished <- task
case <-context.Done():
continue
return
}
}