Permalink
Browse files

always create debugger websocket connection

Reviewed By: Hypuk, pakoito

Differential Revision: D6918269

fbshipit-source-id: 3175c75d4e8459a61d7907555ab9bd4e95002853
  • Loading branch information...
bnham authored and facebook-github-bot committed Feb 8, 2018
1 parent a40bfa7 commit fa334ce464da39625f4e4fbfee259e9dcea31abc
Showing with 5 additions and 7 deletions.
  1. +5 −7 React/Modules/RCTDevSettings.mm
@@ -195,13 +195,11 @@ - (void)setBridge:(RCTBridge *)bridge
// 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
}

0 comments on commit fa334ce

Please sign in to comment.