mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-15 14:50:39 +01:00
Increase timeout in RTCUIApplicationStatusObserver
Increase timeout since the wait function timed out in certain debugging circumstances. Also change the check to a DCHECK since it is not really a critical error if it would time out. BUG=None Review-Url: https://codereview.webrtc.org/3007773002 Cr-Commit-Position: refs/heads/master@{#19582}
This commit is contained in:
parent
ecf312e603
commit
cfab6c7c04
1 changed files with 3 additions and 3 deletions
|
@ -63,9 +63,9 @@
|
|||
|
||||
- (BOOL)isApplicationActive {
|
||||
if (!_initialized) {
|
||||
long ret =
|
||||
dispatch_block_wait(_initializeBlock, dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC));
|
||||
RTC_CHECK_EQ(ret, 0);
|
||||
long ret = dispatch_block_wait(_initializeBlock,
|
||||
dispatch_time(DISPATCH_TIME_NOW, 10.0 * NSEC_PER_SEC));
|
||||
RTC_DCHECK_EQ(ret, 0);
|
||||
}
|
||||
return _state == UIApplicationStateActive;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue