Skip to content

Commit fa334ce

Browse files
bnhamfacebook-github-bot
authored andcommitted
always create debugger websocket connection
Reviewed By: Hypuk, pakoito Differential Revision: D6918269 fbshipit-source-id: 3175c75d4e8459a61d7907555ab9bd4e95002853
1 parent a40bfa7 commit fa334ce

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

React/Modules/RCTDevSettings.mm

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,11 @@ - (void)setBridge:(RCTBridge *)bridge
195195
// finished with its initialisation. But it does finish by the time it
196196
// relinquishes control of the main thread, so only queue on the JS thread
197197
// after the current main thread operation is done.
198-
if (self.isNuclideDebuggingAvailable) {
199-
dispatch_async(dispatch_get_main_queue(), ^{
200-
[bridge dispatchBlock:^{
201-
[RCTInspectorDevServerHelper connectWithBundleURL:bridge.bundleURL];
202-
} queue:RCTJSThread];
203-
});
204-
}
198+
dispatch_async(dispatch_get_main_queue(), ^{
199+
[bridge dispatchBlock:^{
200+
[RCTInspectorDevServerHelper connectWithBundleURL:bridge.bundleURL];
201+
} queue:RCTJSThread];
202+
});
205203
#endif
206204
}
207205

0 commit comments

Comments
 (0)