Skip to content

Commit

Permalink
6.4.7-rc2 (#1318)
Browse files Browse the repository at this point in the history
- Fix crashes when backgrounding app
  • Loading branch information
tmolitor-stud-tu authored Dec 1, 2024
2 parents 331c790 + df486cf commit 561533d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Monal/Classes/HelperTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -1880,11 +1880,14 @@ +(void) flushLogsWithTimeout:(double) timeout

+(void) signalSuspension
{
DDLogVerbose(@"Suspending logger queue...");
[HelperTools flushLogsWithTimeout:0.100];
@synchronized(_suspensionHandlingLock) {
dispatch_suspend([DDLog loggingQueue]);
_suspensionHandlingIsSuspended = YES;
if(!_suspensionHandlingIsSuspended)
{
DDLogVerbose(@"Suspending logger queue...");
[HelperTools flushLogsWithTimeout:0.100];
dispatch_suspend([DDLog loggingQueue]);
_suspensionHandlingIsSuspended = YES;
}
}
DDLogVerbose(@"Posting kMonalIsFreezed notification now...");
[[NSNotificationCenter defaultCenter] postNotificationName:kMonalIsFreezed object:nil];
Expand Down

0 comments on commit 561533d

Please sign in to comment.