Skip to content

Commit

Permalink
always create debugger websocket connection
Browse files Browse the repository at this point in the history
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 fa334ce
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions React/Modules/RCTDevSettings.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

1 comment on commit fa334ce

@aleclarson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No description for this change. What did it fix?

Please sign in to comment.