mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-10 22:25:34 +00:00
Fix a bug in BreakpadController that prevented multiple report uploads per call to sendStoredCrashReports.
Submitting this patch on behalf of Asher Segel-Brown. R=blundell@chromium.org, mark@chromium.org, qsr@chromium.org Review URL: https://breakpad.appspot.com/1234002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1288 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
c5ae79b3f2
commit
cc3542dc44
|
@ -309,10 +309,14 @@ NSString* GetPlatform() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// A report must be sent later.
|
// A report must be sent later.
|
||||||
if (timeToWait > 0)
|
if (timeToWait > 0) {
|
||||||
[self performSelector:@selector(sendStoredCrashReports)
|
// performSelector: doesn't work on queue_
|
||||||
withObject:nil
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
afterDelay:timeToWait];
|
[self performSelector:@selector(sendStoredCrashReports)
|
||||||
|
withObject:nil
|
||||||
|
afterDelay:timeToWait];
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue