Browse Source

IOSAD-157 If sync event in nil, add to the front of the queue

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

+ 7
- 1
pEpObjCAdapter/PEPSync.m View File

@ -243,7 +243,13 @@ static __weak PEPSync *s_pEpSync;
- (int)injectSyncEvent:(SYNC_EVENT)event
{
[self.queue enqueue:[NSValue valueWithBytes:&event objCType:@encode(SYNC_EVENT)]];
NSValue *value = [NSValue valueWithBytes:&event objCType:@encode(SYNC_EVENT)];
if (event) {
[self.queue enqueue:value];
} else {
[self.queue prequeue:value];
}
return 0;
}


Loading…
Cancel
Save