Skip to content

Commit a1151c3

Browse files
authored
Merge pull request #1903 from NativeScript/no-build-to-get-debug-port
do not build when getting debug port
2 parents 64790c4 + 84cada9 commit a1151c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/android-debug-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class AndroidDebugService implements IDebugService {
104104
return (() => {
105105
let packageFile = "";
106106

107-
if (!this.$options.start && !this.$options.emulator) {
107+
if (!this.$options.start && !this.$options.emulator && !this.$options.getPort) {
108108
let cachedDeviceOption = this.$options.forDevice;
109109
this.$options.forDevice = true;
110110
this.$platformService.buildPlatform(this.platform).wait();

0 commit comments

Comments
 (0)