mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Force the debugger to disconnect before a bundle reload
Reviewed By: bnham Differential Revision: D5594238 fbshipit-source-id: feff9f179534c8e617f8fa7c8a7b1bc525c07cae
This commit is contained in:
committed by
Facebook Github Bot
parent
f11f00197d
commit
41504103ce
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user