aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/ios/BreakpadController.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/ios/BreakpadController.mm b/src/client/ios/BreakpadController.mm
index 22f397a9..dc5a2d1e 100644
--- a/src/client/ios/BreakpadController.mm
+++ b/src/client/ios/BreakpadController.mm
@@ -249,10 +249,8 @@ NSString* GetPlatform() {
}
- (void)withBreakpadRef:(void(^)(BreakpadRef))callback {
- NSAssert(started_,
- @"The controller must be started before withBreakpadRef is called");
dispatch_async(queue_, ^{
- callback(breakpadRef_);
+ callback(started_ ? breakpadRef_ : NULL);
});
}