From ebdd1ce6734c6a4d66398383b1ee861d824dcc70 Mon Sep 17 00:00:00 2001 From: "Kristian D. Dimitrov" Date: Fri, 21 Jul 2017 11:38:16 +0300 Subject: [PATCH] Fix itunes error after run android --- lib/commands/run.ts | 2 +- lib/common | 2 +- lib/services/livesync/livesync-command-helper.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands/run.ts b/lib/commands/run.ts index b966d73a3c..bdd9236c47 100644 --- a/lib/commands/run.ts +++ b/lib/commands/run.ts @@ -56,7 +56,7 @@ export class RunCommandBase implements ICommand { skipInferPlatform: !this.platform }); - await this.$devicesService.detectCurrentlyAttachedDevices(); + await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform: this.platform }); let devices = this.$devicesService.getDeviceInstances(); devices = devices.filter(d => !this.platform || d.deviceInfo.platform.toLowerCase() === this.platform.toLowerCase()); await this.$liveSyncCommandHelper.getDevicesLiveSyncInfo(devices, this.$liveSyncService, this.platform); diff --git a/lib/common b/lib/common index c33a233679..0ff4e5d858 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit c33a23367970966d1993749886fd689f3d048213 +Subproject commit 0ff4e5d8583f48f702d9a0c3c13c996f14b9694a diff --git a/lib/services/livesync/livesync-command-helper.ts b/lib/services/livesync/livesync-command-helper.ts index e37dd20b5f..784dcce81d 100644 --- a/lib/services/livesync/livesync-command-helper.ts +++ b/lib/services/livesync/livesync-command-helper.ts @@ -10,7 +10,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper { } public async getDevicesLiveSyncInfo(devices: Mobile.IDevice[], liveSyncService: ILiveSyncService, platform: string): Promise { - await this.$devicesService.detectCurrentlyAttachedDevices(); + await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform }); const workingWithiOSDevices = !platform || this.$mobileHelper.isiOSPlatform(platform); const shouldKeepProcessAlive = this.$options.watch || !this.$options.justlaunch;