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:
andersc 2017-08-29 06:52:04 -07:00 committed by Commit Bot
parent ecf312e603
commit cfab6c7c04

View file

@ -63,9 +63,9 @@
- (BOOL)isApplicationActive { - (BOOL)isApplicationActive {
if (!_initialized) { if (!_initialized) {
long ret = long ret = dispatch_block_wait(_initializeBlock,
dispatch_block_wait(_initializeBlock, dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC)); dispatch_time(DISPATCH_TIME_NOW, 10.0 * NSEC_PER_SEC));
RTC_CHECK_EQ(ret, 0); RTC_DCHECK_EQ(ret, 0);
} }
return _state == UIApplicationStateActive; return _state == UIApplicationStateActive;
} }