This repository was archived by the owner on Feb 2, 2021. It is now read-only.
File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ declare module Mobile {
263
263
interface IGDBServer {
264
264
run ( argv : string [ ] ) : IFuture < void > ;
265
265
kill ( argv : string [ ] ) : IFuture < void > ;
266
- destory ( ) : void ;
266
+ destroy ( ) : void ;
267
267
}
268
268
269
269
interface INotificationProxyClient {
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
21
21
private $logger : ILogger ,
22
22
private $hostInfo : IHostInfo ,
23
23
private $staticConfig : Config . IStaticConfig ,
24
- private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ) {
24
+ private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
25
+ private $options : ICommonOptions ) {
25
26
this . uninstallApplicationCallbackPtr = CoreTypes . am_device_mount_image_callback . toPointer ( IOSApplicationManager . uninstallCallback ) ;
26
27
}
27
28
@@ -88,6 +89,9 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
88
89
return ( ( ) => {
89
90
this . stopApplication ( applicationId ) . wait ( ) ;
90
91
this . runApplicationCore ( applicationId ) . wait ( ) ;
92
+ if ( ! this . $options . watch ) {
93
+ this . _gdbServer . destroy ( ) ;
94
+ }
91
95
} ) . future < void > ( ) ( ) ;
92
96
}
93
97
@@ -119,7 +123,7 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
119
123
120
124
private runApplicationCore ( applicationId : any ) {
121
125
if ( this . _gdbServer ) {
122
- this . _gdbServer . destory ( ) ;
126
+ this . _gdbServer . destroy ( ) ;
123
127
this . _gdbServer = null ;
124
128
}
125
129
Original file line number Diff line number Diff line change @@ -1151,7 +1151,7 @@ export class GDBServer implements Mobile.IGDBServer {
1151
1151
} ) . future < void > ( ) ( ) ;
1152
1152
}
1153
1153
1154
- public destory ( ) : void {
1154
+ public destroy ( ) : void {
1155
1155
this . socket . destroy ( ) ;
1156
1156
}
1157
1157
You can’t perform that action at this time.
0 commit comments