Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit ad92d5c

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #525 from telerik/fatme/release-console
Release the console after livesync command and fix a typo.
2 parents f380a5d + 57b1f66 commit ad92d5c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

definitions/mobile.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ declare module Mobile {
263263
interface IGDBServer {
264264
run(argv: string[]): IFuture<void>;
265265
kill(argv: string[]): IFuture<void>;
266-
destory(): void;
266+
destroy(): void;
267267
}
268268

269269
interface INotificationProxyClient {

mobile/ios/ios-application-manager.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
2121
private $logger: ILogger,
2222
private $hostInfo: IHostInfo,
2323
private $staticConfig: Config.IStaticConfig,
24-
private $devicePlatformsConstants: Mobile.IDevicePlatformsConstants) {
24+
private $devicePlatformsConstants: Mobile.IDevicePlatformsConstants,
25+
private $options: ICommonOptions) {
2526
this.uninstallApplicationCallbackPtr = CoreTypes.am_device_mount_image_callback.toPointer(IOSApplicationManager.uninstallCallback);
2627
}
2728

@@ -88,6 +89,9 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
8889
return (() => {
8990
this.stopApplication(applicationId).wait();
9091
this.runApplicationCore(applicationId).wait();
92+
if (!this.$options.watch) {
93+
this._gdbServer.destroy();
94+
}
9195
}).future<void>()();
9296
}
9397

@@ -119,7 +123,7 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
119123

120124
private runApplicationCore(applicationId: any) {
121125
if (this._gdbServer) {
122-
this._gdbServer.destory();
126+
this._gdbServer.destroy();
123127
this._gdbServer = null;
124128
}
125129

mobile/ios/ios-core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ export class GDBServer implements Mobile.IGDBServer {
11511151
}).future<void>()();
11521152
}
11531153

1154-
public destory(): void {
1154+
public destroy(): void {
11551155
this.socket.destroy();
11561156
}
11571157

0 commit comments

Comments
 (0)