File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class IOSDebugService implements IDebugService {
38
38
39
39
private _lldbProcess : ChildProcess ;
40
40
private _sockets : net . Socket [ ] = [ ] ;
41
+ private _childProcess : ChildProcess ;
41
42
42
43
public get platform ( ) : string {
43
44
return "ios" ;
@@ -85,11 +86,15 @@ class IOSDebugService implements IDebugService {
85
86
socket . destroy ( ) ;
86
87
}
87
88
this . _sockets = [ ] ;
88
- if ( this . _lldbProcess ) {
89
+ if ( this . _lldbProcess ) {
89
90
this . _lldbProcess . stdin . write ( "process detach\n" ) ;
90
91
this . _lldbProcess . kill ( ) ;
91
92
this . _lldbProcess = undefined ;
92
93
}
94
+ if ( this . _childProcess ) {
95
+ this . _childProcess . kill ( ) ;
96
+ this . _childProcess = undefined ;
97
+ }
93
98
} ) . future < void > ( ) ( ) ;
94
99
}
95
100
@@ -108,6 +113,7 @@ class IOSDebugService implements IDebugService {
108
113
skipInstall : this . $config . debugLivesync
109
114
} ) . wait ( ) ;
110
115
let lineStream = byline ( child_process . stdout ) ;
116
+ this . _childProcess = child_process ;
111
117
112
118
lineStream . on ( 'data' , ( line : NodeBuffer ) => {
113
119
let lineText = line . toString ( ) ;
You can’t perform that action at this time.
0 commit comments