File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/common/mobile/android Expand file tree Collapse file tree 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
1515 const adbDevicesOutput = await this . $adb . getDevicesSafe ( ) ;
1616 const avdAvailableEmulatorsOutput = await this . $androidVirtualDeviceService . getEmulatorImages ( adbDevicesOutput ) ;
1717 const genyAvailableDevicesOutput = await this . $androidGenymotionService . getEmulatorImages ( adbDevicesOutput ) ;
18+ const devices = _ . concat ( avdAvailableEmulatorsOutput . devices , genyAvailableDevicesOutput . devices )
19+ . filter ( item => ! ! item ) ;
1820
1921 return {
20- devices : avdAvailableEmulatorsOutput . devices . concat ( genyAvailableDevicesOutput . devices ) ,
22+ devices,
2123 errors : avdAvailableEmulatorsOutput . errors . concat ( genyAvailableDevicesOutput . errors )
2224 } ;
2325 }
@@ -97,10 +99,10 @@ export class AndroidEmulatorServices implements Mobile.IEmulatorPlatformService
9799
98100 while ( hasTimeLeft || isInfiniteWait ) {
99101 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 ) ) {
102104 return {
103- runningEmulator : emulator ,
105+ runningEmulator : newEmulator ,
104106 errors : [ ] ,
105107 endTimeEpoch
106108 } ;
You can’t perform that action at this time.
0 commit comments