feat:fix when debugging,log cannot show on terminal

This commit is contained in:
pengfeizhou
2021-02-23 16:57:56 +08:00
committed by osborn
parent f44a0824b3
commit 149826ae12
4 changed files with 22 additions and 5 deletions

View File

@@ -163,12 +163,10 @@ - (DoricAsyncResult *)createContext:(NSString *)contextId script:(NSString *)scr
- (DoricAsyncResult *)destroyContext:(NSString *)contextId {
DoricAsyncResult *ret = [[DoricAsyncResult alloc] init];
__weak typeof(self) _self = self;
NSString *theContextId = self.theContextId;
[self.jsExecutor ensureRunOnJSThread:^{
__strong typeof(_self) self = _self;
if (!self) return;
@try {
if ([contextId isEqualToString:self.theContextId]) {
if ([contextId isEqualToString:theContextId]) {
[DoricDev.instance stopDebugging:NO];
}
[ret setupResult:@YES];