Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit f2bc130

Browse files
Merge pull request #217 from telerik/vladimirov/fix-genymotion
Fix starting of genymotion emulator
2 parents d1de839 + 4bc73be commit f2bc130

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mobile/android/android-emulator-services.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices {
7070

7171
private checkGenymotionConfiguration(): IFuture<void> {
7272
return (() => {
73+
var proc: any;
7374
try {
74-
var proc = this.$childProcess.spawnFromEvent("player", [], "exit", undefined, { throwError: false }).wait();
75+
proc = this.$childProcess.spawnFromEvent("player", [], "exit", undefined, { throwError: false }).wait();
7576
} catch(e) {
7677
var message: string = (e.code === "ENOENT") ? AndroidEmulatorServices.MISSING_GENYMOTION_MESSAGE : e.message;
7778
this.$errors.failWithoutHelp(message);
7879
}
7980

80-
if(proc.stderr && !proc.stderr.startsWith("Usage:")) {
81+
if(proc.stderr && !_.startsWith(proc.stderr, "Usage:")) {
8182
this.$errors.failWithoutHelp(AndroidEmulatorServices.MISSING_GENYMOTION_MESSAGE);
8283
}
8384
}).future<void>()();

0 commit comments

Comments
 (0)