always create debugger websocket connection

Reviewed By: Hypuk, pakoito

Differential Revision: D6918269

fbshipit-source-id: 3175c75d4e8459a61d7907555ab9bd4e95002853
This commit is contained in:
Ben Nham 2018-02-08 10:11:47 -08:00 committed by Facebook Github Bot
parent a40bfa730e
commit fa334ce464
1 changed files with 5 additions and 7 deletions

View File

@ -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
}