Skip to content

Commit f0e150c

Browse files
authored
Merge pull request #3856 from NativeScript/kddimitrov/fix-justlaunch
fix: command with justlaunch option doesn't exit
2 parents 049ccab + fe6a785 commit f0e150c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/android-device-livesync-sockets-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class AndroidDeviceSocketsLiveSyncService extends DeviceLiveSyncServiceBa
8989
const canExecuteFastSync = !liveSyncInfo.isFullSync && this.canExecuteFastSyncForPaths(liveSyncInfo.modifiedFilesData, projectData, this.device.deviceInfo.platform);
9090
if (!canExecuteFastSync || !liveSyncInfo.didRefresh) {
9191
await this.device.applicationManager.restartApplication({ appId: liveSyncInfo.deviceAppData.appIdentifier, projectName: projectData.projectName });
92-
if (this.livesyncTool.protocolVersion && semver.gte(this.livesyncTool.protocolVersion, AndroidDeviceSocketsLiveSyncService.MINIMAL_VERSION_LONG_LIVING_CONNECTION)) {
92+
if (!this.$options.justlaunch && this.livesyncTool.protocolVersion && semver.gte(this.livesyncTool.protocolVersion, AndroidDeviceSocketsLiveSyncService.MINIMAL_VERSION_LONG_LIVING_CONNECTION)) {
9393
try {
9494
await this.connectLivesyncTool(liveSyncInfo.deviceAppData.appIdentifier);
9595
} catch (e) {

0 commit comments

Comments
 (0)