IOSAD-103 avoid deadlock IOSAD-103
authorDirk Zimmermann <dirk@pep-project.org>
Fri, 02 Nov 2018 16:27:42 +0100
branchIOSAD-103
changeset 757297e87c90165
parent 756 7ce91e92472c
child 758 3207ae9d5707
IOSAD-103 avoid deadlock
pEpObjCAdapter/PEPSync.m
     1.1 --- a/pEpObjCAdapter/PEPSync.m	Fri Nov 02 16:27:42 2018 +0100
     1.2 +++ b/pEpObjCAdapter/PEPSync.m	Fri Nov 02 16:27:42 2018 +0100
     1.3 @@ -155,6 +155,10 @@
     1.4  
     1.5  - (void)startup
     1.6  {
     1.7 +    // assure the main session exists
     1.8 +    PEPInternalSession *session = [PEPSessionProvider session];
     1.9 +    session = nil;
    1.10 +
    1.11      self.conditionLockForJoiningSyncThread = [[NSConditionLock alloc] initWithCondition:NO];
    1.12      NSThread *theSyncThread = [[NSThread alloc] initWithTarget:self
    1.13                                                        selector:@selector(syncThreadLoop:)