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

Commit d767ae6

Browse files
committed
Do not call adb kill-server on uninstall
See NativeScript/nativescript-cli#1247
1 parent 21f43e1 commit d767ae6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

commands/preuninstall.ts

-13
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@ export class PreUninstallCommand implements ICommand {
1717

1818
public execute(args: string[]): IFuture<void> {
1919
return (() => {
20-
let relativeAdbPath = util.format(PreUninstallCommand.ADB_RELATIVE_PATH, process.platform);
21-
let adbPath = path.join(__dirname, relativeAdbPath);
22-
23-
let killAdbServerCommand = util.format("\"%s\" kill-server", adbPath);
24-
this.$logger.warn("Trying to kill adb server. Some running Android related operations may fail.");
25-
26-
try {
27-
this.$childProcess.exec(killAdbServerCommand).wait();
28-
} catch(err) {
29-
this.$logger.trace(err);
30-
this.$logger.warn("Unable to kill adb server.");
31-
}
32-
3320
this.$fs.deleteFile(path.join(this.$options.profileDir, "KillSwitches", "cli")).wait();
3421
}).future<void>()();
3522
}

0 commit comments

Comments
 (0)