mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Nil out background task after we have ended it
This commit is contained in:
parent
cbf0215936
commit
f8dcab74ec
1 changed files with 1 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ final class ShareExtensionViewModel: ObservableObject {
|
|||
case let .failure(error):
|
||||
if let backgroundTask = self.backgroundTask {
|
||||
UIApplication.shared.endBackgroundTask(backgroundTask)
|
||||
self.backgroundTask = nil
|
||||
}
|
||||
self.debugText = error.message
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue