Skip to content

Commit

Permalink
Bug fix for issue CocoaLumberjack#34
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiehanson committed May 31, 2012
1 parent d472c3e commit 0e70b59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lumberjack/DDAbstractDatabaseLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ - (void)destroySaveTimer
if (saveTimer)
{
dispatch_source_cancel(saveTimer);
if (saveTimerSuspended)
{
// Must resume a timer before releasing it (or it will crash)
dispatch_resume(saveTimer);
saveTimerSuspended = NO;
}
dispatch_release(saveTimer);
saveTimer = NULL;
}
Expand Down

0 comments on commit 0e70b59

Please sign in to comment.