mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-21 02:21:39 -04:00
Clean up orphaned activities as well
This commit is contained in:
parent
187a0a5782
commit
ce266fbeb1
@ -135,6 +135,10 @@ final class ActivityService {
|
||||
activity = nil
|
||||
isStarted = false
|
||||
downloadTimes = [:]
|
||||
// make sure we clean up orphan activities of the same type as well
|
||||
for activity in Activity<DownloadActivityAttributes>.activities {
|
||||
await activity.end(nil, dismissalPolicy: .immediate)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user