Skip to content

Commit

Permalink
Merge b367892 into 22799ff
Browse files Browse the repository at this point in the history
  • Loading branch information
tburgin committed Jan 21, 2022
2 parents 22799ff + b367892 commit 81800cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/santasyncservice/SNTSyncRuleDownload.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ - (BOOL)sync {
error = e;
dispatch_semaphore_signal(sema);
}];
dispatch_semaphore_wait(sema, dispatch_time(DISPATCH_TIME_NOW, 300 * NSEC_PER_SEC));
if (dispatch_semaphore_wait(sema, dispatch_time(DISPATCH_TIME_NOW, 300 * NSEC_PER_SEC))) {
LOGE(@"Failed to add rule(s) to database: timeout connecting to daemon");
return NO;
}

if (error) {
LOGE(@"Failed to add rule(s) to database: %@", error.localizedDescription);
Expand Down

0 comments on commit 81800cf

Please sign in to comment.