Skip to content

Commit dc8af3d

Browse files
KristianDDrosen-vladimirov
authored andcommitted
Fix itunes error after run android (#2994)
1 parent 199b293 commit dc8af3d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/commands/run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class RunCommandBase implements ICommand {
5656
skipInferPlatform: !this.platform
5757
});
5858

59-
await this.$devicesService.detectCurrentlyAttachedDevices();
59+
await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform: this.platform });
6060
let devices = this.$devicesService.getDeviceInstances();
6161
devices = devices.filter(d => !this.platform || d.deviceInfo.platform.toLowerCase() === this.platform.toLowerCase());
6262
await this.$liveSyncCommandHelper.getDevicesLiveSyncInfo(devices, this.$liveSyncService, this.platform);

lib/services/livesync/livesync-command-helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
1010
}
1111

1212
public async getDevicesLiveSyncInfo(devices: Mobile.IDevice[], liveSyncService: ILiveSyncService, platform: string): Promise<void> {
13-
await this.$devicesService.detectCurrentlyAttachedDevices();
13+
await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform });
1414

1515
const workingWithiOSDevices = !platform || this.$mobileHelper.isiOSPlatform(platform);
1616
const shouldKeepProcessAlive = this.$options.watch || !this.$options.justlaunch;

0 commit comments

Comments
 (0)