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

Commit ba83088

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #530 from telerik/fatme/release-console-after-run-command
Release the console after `tns run ios` command
2 parents 2b343d3 + 95273bc commit ba83088

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

mobile/ios/ios-application-manager.ts

-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
8989
return (() => {
9090
this.stopApplication(applicationId).wait();
9191
this.runApplicationCore(applicationId).wait();
92-
if (!this.$options.watch) {
93-
this._gdbServer.destroy();
94-
}
9592
}).future<void>()();
9693
}
9794

mobile/ios/ios-core.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1131,8 +1131,12 @@ export class GDBServer implements Mobile.IGDBServer {
11311131
this.send("vCont;c");
11321132
} else {
11331133
if (this.$options.justlaunch) {
1134-
// Disconnecting the debugger closes the socket and allows the process to quit
1135-
this.sendCore(this.encodeData("vCont;c"));
1134+
if (this.$options.watch) {
1135+
this.sendCore(this.encodeData("vCont;c"));
1136+
} else {
1137+
// Disconnecting the debugger closes the socket and allows the process to quit
1138+
this.sendCore(this.encodeData("D"));
1139+
}
11361140
} else {
11371141
this.socket.pipe(new GDBStandardOutputAdapter()).pipe(process.stdout);
11381142
this.socket.pipe(new GDBSignalWatcher());

0 commit comments

Comments
 (0)