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 коммит произвёл Facebook Github Bot
Родитель a40bfa730e
Коммит fa334ce464
1 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -195,13 +195,11 @@ RCT_EXPORT_MODULE()
// finished with its initialisation. But it does finish by the time it // 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 // relinquishes control of the main thread, so only queue on the JS thread
// after the current main thread operation is done. // after the current main thread operation is done.
if (self.isNuclideDebuggingAvailable) { dispatch_async(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{ [bridge dispatchBlock:^{
[bridge dispatchBlock:^{ [RCTInspectorDevServerHelper connectWithBundleURL:bridge.bundleURL];
[RCTInspectorDevServerHelper connectWithBundleURL:bridge.bundleURL]; } queue:RCTJSThread];
} queue:RCTJSThread]; });
});
}
#endif #endif
} }