From fa334ce464da39625f4e4fbfee259e9dcea31abc Mon Sep 17 00:00:00 2001 From: Ben Nham Date: Thu, 8 Feb 2018 10:11:47 -0800 Subject: [PATCH] always create debugger websocket connection Reviewed By: Hypuk, pakoito Differential Revision: D6918269 fbshipit-source-id: 3175c75d4e8459a61d7907555ab9bd4e95002853 --- React/Modules/RCTDevSettings.mm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/React/Modules/RCTDevSettings.mm b/React/Modules/RCTDevSettings.mm index 1b9bb44352..7de283c510 100644 --- a/React/Modules/RCTDevSettings.mm +++ b/React/Modules/RCTDevSettings.mm @@ -195,13 +195,11 @@ RCT_EXPORT_MODULE() // finished with its initialisation. But it does finish by the time it // relinquishes control of the main thread, so only queue on the JS thread // after the current main thread operation is done. - if (self.isNuclideDebuggingAvailable) { - dispatch_async(dispatch_get_main_queue(), ^{ - [bridge dispatchBlock:^{ - [RCTInspectorDevServerHelper connectWithBundleURL:bridge.bundleURL]; - } queue:RCTJSThread]; - }); - } + dispatch_async(dispatch_get_main_queue(), ^{ + [bridge dispatchBlock:^{ + [RCTInspectorDevServerHelper connectWithBundleURL:bridge.bundleURL]; + } queue:RCTJSThread]; + }); #endif }