Browse Source

IOSAD-157 Can shut down with injectSyncEvent:nil

IOSAD-157
Dirk Zimmermann 3 years ago
parent
commit
18901b6273
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      pEpObjCAdapter/PEPSync.m

+ 4
- 3
pEpObjCAdapter/PEPSync.m View File

@ -175,10 +175,7 @@ static __weak PEPSync *s_pEpSync;
{
if (self.syncThread) {
[self injectSyncEvent:nil];
[self.conditionLockForJoiningSyncThread lockWhenCondition:YES];
[self.conditionLockForJoiningSyncThread unlock];
}
self.conditionLockForJoiningSyncThread = nil;
}
// MARK: - Private
@ -249,7 +246,11 @@ static __weak PEPSync *s_pEpSync;
[self.queue enqueue:value];
} else {
[self.queue prequeue:value];
[self.conditionLockForJoiningSyncThread lockWhenCondition:YES];
[self.conditionLockForJoiningSyncThread unlock];
self.conditionLockForJoiningSyncThread = nil;
}
return 0;
}


Loading…
Cancel
Save