Merge pull request #740 from omnivore-app/fix/ios-sync-crashes

Fix potential crash when syncing a PDF fails
This commit is contained in:
Jackson Harper 2022-06-03 09:48:18 -07:00 committed by GitHub
commit 97f5002898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,9 @@ public extension DataService {
try backgroundContext.save()
}
} catch {
backgroundContext.rollback()
backgroundContext.performAndWait {
backgroundContext.rollback()
}
throw error
}
}