File tree 1 file changed +6
-4
lines changed
lib/common/mobile/android
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ export class AndroidEmulatorServices implements Mobile.IEmulatorPlatformService
15
15
const adbDevicesOutput = await this . $adb . getDevicesSafe ( ) ;
16
16
const avdAvailableEmulatorsOutput = await this . $androidVirtualDeviceService . getEmulatorImages ( adbDevicesOutput ) ;
17
17
const genyAvailableDevicesOutput = await this . $androidGenymotionService . getEmulatorImages ( adbDevicesOutput ) ;
18
+ const devices = _ . concat ( avdAvailableEmulatorsOutput . devices , genyAvailableDevicesOutput . devices )
19
+ . filter ( item => ! ! item ) ;
18
20
19
21
return {
20
- devices : avdAvailableEmulatorsOutput . devices . concat ( genyAvailableDevicesOutput . devices ) ,
22
+ devices,
21
23
errors : avdAvailableEmulatorsOutput . errors . concat ( genyAvailableDevicesOutput . errors )
22
24
} ;
23
25
}
@@ -97,10 +99,10 @@ export class AndroidEmulatorServices implements Mobile.IEmulatorPlatformService
97
99
98
100
while ( hasTimeLeft || isInfiniteWait ) {
99
101
const emulators = ( await this . getEmulatorImages ( ) ) . devices ;
100
- emulator = _ . find ( emulators , e => e . imageIdentifier === emulator . imageIdentifier ) ;
101
- if ( emulator && this . $emulatorHelper . isEmulatorRunning ( emulator ) ) {
102
+ const newEmulator = _ . find ( emulators , e => e . imageIdentifier === emulator . imageIdentifier ) ;
103
+ if ( newEmulator && this . $emulatorHelper . isEmulatorRunning ( newEmulator ) ) {
102
104
return {
103
- runningEmulator : emulator ,
105
+ runningEmulator : newEmulator ,
104
106
errors : [ ] ,
105
107
endTimeEpoch
106
108
} ;
You can’t perform that action at this time.
0 commit comments