Closed chbeer closed 11 years ago
Thanks for the report Christian. We actually prevent more than one synchronization operation from running at once which why we haven't seen this problem yet, but it's something that should be fixed.
I didn't have the time to create a pull request. I fixed it like this:
- (void)continueSynchronizationByResolvingConflictWithResolutionType:(TICDSSyncConflictResolutionType)aType
{
if ([self.synchronizationQueue operations].count == 0) return;
TICDSSynchronizationOperation *operation = [[self.synchronizationQueue operations] objectAtIndex:0];
[operation setMostRecentConflictResolutionType:aType];
[operation setPaused:NO];
}
Thanks Christian, I've merged that change in.
This method
picks the
lastObject
to solve the conflict. But looking at theoperation
, it seems it's the wrong one (breakpoint on second line in method):This shows, the first operation is paused, not the second one.
In my case there seem to be two syncing operations (maybe that's the problem?) and the wrong one gets unpaused.