Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #499 from bmourat/fix/crash-in-extensions
Browse files Browse the repository at this point in the history
Fix crash in extensions
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Dec 18, 2017
2 parents d9c7799 + 377b0c6 commit 7a58aea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/BITCrashManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ - (void) registerObservers {
self.didLogLowMemoryWarning = YES;
}
});
dispatch_resume(source);
});
} else {
self.appDidReceiveLowMemoryWarningObserver = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidReceiveMemoryWarningNotification
Expand Down Expand Up @@ -1053,7 +1054,7 @@ - (void)triggerDelayedProcessing {
*/
- (void)invokeDelayedProcessing {
#if !defined (HOCKEYSDK_CONFIGURATION_ReleaseCrashOnlyExtensions)
if ([BITHockeyHelper applicationState] != BITApplicationStateActive) {
if (!bit_isRunningInAppExtension() && [BITHockeyHelper applicationState] != BITApplicationStateActive) {
return;
}
#endif
Expand Down

0 comments on commit 7a58aea

Please sign in to comment.