Force the debugger to disconnect before a bundle reload

Reviewed By: bnham

Differential Revision: D5594238

fbshipit-source-id: feff9f179534c8e617f8fa7c8a7b1bc525c07cae
This commit is contained in:
Paco Estevez Garcia
2017-08-14 08:07:13 -07:00
committed by Facebook Github Bot
parent f11f00197d
commit 41504103ce
12 changed files with 67 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "RCTInspectorDevServerHelper.h"
#import "RCTJSEnvironment.h"
#import "RCTLog.h"
#import "RCTModuleData.h"
@@ -252,6 +253,11 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
- (void)reload
{
#if ENABLE_INSPECTOR
// Disable debugger to resume the JsVM & avoid thread locks while reloading
[RCTInspectorDevServerHelper disableDebugger];
#endif
/**
* Any thread
*/