Fix potential crash when syncing a PDF fails

This commit is contained in:
Jackson Harper
2022-06-03 09:25:39 -07:00
parent 9ff04a6fb6
commit 052d5a7dc4

View File

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