mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix potential crash when syncing a PDF fails
This commit is contained in:
parent
9ff04a6fb6
commit
052d5a7dc4
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ public extension DataService {
|
||||||
try backgroundContext.save()
|
try backgroundContext.save()
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
backgroundContext.rollback()
|
backgroundContext.performAndWait {
|
||||||
|
backgroundContext.rollback()
|
||||||
|
}
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue