Skip to content

Commit

Permalink
Merge branch 'master' of github.com:robbiehanson/CocoaLumberjack
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiehanson committed Dec 8, 2012
2 parents 3dfde95 + a494160 commit 2342727
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Lumberjack/DDAbstractDatabaseLogger.m
Expand Up @@ -220,16 +220,18 @@ - (void)createAndStartDeleteTimer
if ((deleteTimer == NULL) && (deleteInterval > 0.0) && (maxAge > 0.0))
{
deleteTimer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, loggerQueue);

dispatch_source_set_event_handler(deleteTimer, ^{ @autoreleasepool {

[self performDelete];

}});

[self updateDeleteTimer];

dispatch_resume(deleteTimer);

if (deleteTimer != NULL) {
dispatch_source_set_event_handler(deleteTimer, ^{ @autoreleasepool {

[self performDelete];

}});

[self updateDeleteTimer];

dispatch_resume(deleteTimer);
}
}
}

Expand Down

0 comments on commit 2342727

Please sign in to comment.