Fix potential crash when syncing a PDF fails
This commit is contained in:
@ -60,7 +60,9 @@ public extension DataService {
|
||||
try backgroundContext.save()
|
||||
}
|
||||
} catch {
|
||||
backgroundContext.rollback()
|
||||
backgroundContext.performAndWait {
|
||||
backgroundContext.rollback()
|
||||
}
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user