aboutsummaryrefslogtreecommitdiff
path: root/src/client/ios
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/ios')
-rw-r--r--src/client/ios/BreakpadController.mm12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/ios/BreakpadController.mm b/src/client/ios/BreakpadController.mm
index 94d93d60..a85dd68e 100644
--- a/src/client/ios/BreakpadController.mm
+++ b/src/client/ios/BreakpadController.mm
@@ -309,10 +309,14 @@ NSString* GetPlatform() {
}
// A report must be sent later.
- if (timeToWait > 0)
- [self performSelector:@selector(sendStoredCrashReports)
- withObject:nil
- afterDelay:timeToWait];
+ if (timeToWait > 0) {
+ // performSelector: doesn't work on queue_
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [self performSelector:@selector(sendStoredCrashReports)
+ withObject:nil
+ afterDelay:timeToWait];
+ });
+ }
});
}