IOSAD-124 fixes: pepSession for main thread is nil_ed when called from main queue

IOSAD-124
buff 3 years ago
parent 317dd0d9f1
commit ea87738aad
  1. 9
      pEpObjCAdapter/PEPSync.m

@ -156,9 +156,7 @@ static __weak PEPSync *s_pEpSync;
- (void)startup
{
// assure the main session exists
PEPInternalSession *session = [PEPSessionProvider session];
session = nil;
[self assureMainSessionExists];
self.conditionLockForJoiningSyncThread = [[NSConditionLock alloc] initWithCondition:NO];
NSThread *theSyncThread = [[NSThread alloc] initWithTarget:self
@ -186,6 +184,11 @@ static __weak PEPSync *s_pEpSync;
return s_pEpSync;
}
- (void)assureMainSessionExists
{
PEPInternalSession *session __attribute__((unused)) = [PEPSessionProvider session];
}
- (void)syncThreadLoop:(id)object
{
[self.conditionLockForJoiningSyncThread lock];

Loading…
Cancel
Save