Skip to content

Commit

Permalink
still trying to resolve rando crash re missing refs
Browse files Browse the repository at this point in the history
  • Loading branch information
deeje committed Aug 5, 2021
1 parent 15598fb commit 3fb1290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Classes/Pull/PullOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public class PullOperation: Operation {
let convertOperation = RecordToCoreDataOperation(parentContext: context, record: record)
convertOperation.errorBlock = { self.errorBlock?($0) }
convertOperation.completionBlock = {
self.objectsWithMissingReferences.append(convertOperation.missingObjectsPerEntities)
context.performAndWait {
self.objectsWithMissingReferences.append(convertOperation.missingObjectsPerEntities)
}
}
self.queue.addOperation(convertOperation)
}
Expand Down

0 comments on commit 3fb1290

Please sign in to comment.