From d10084db2bc287d278096df785ba34dc1b8df28c Mon Sep 17 00:00:00 2001 From: Leland Richardson Date: Sat, 11 Nov 2017 13:17:04 -0800 Subject: [PATCH] Increase prepare js timeout --- Libraries/WebSocket/RCTWebSocketExecutor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/WebSocket/RCTWebSocketExecutor.m b/Libraries/WebSocket/RCTWebSocketExecutor.m index 520337178f7ba9..cb70fc33f3292c 100644 --- a/Libraries/WebSocket/RCTWebSocketExecutor.m +++ b/Libraries/WebSocket/RCTWebSocketExecutor.m @@ -117,7 +117,7 @@ - (BOOL)prepareJSRuntime initError = error; dispatch_semaphore_signal(s); }]; - long runtimeIsReady = dispatch_semaphore_wait(s, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC)); + long runtimeIsReady = dispatch_semaphore_wait(s, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * 5)); if (initError) { RCTLogInfo(@"Websocket runtime setup failed: %@", initError); }