Nil out background task after we have ended it

This commit is contained in:
Jackson Harper 2022-05-31 15:14:44 -07:00
parent cbf0215936
commit f8dcab74ec

View file

@ -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
}