Skip to content

Commit a8740c1

Browse files
author
Fatme
authored
Merge pull request #111 from telerik/fatme/fix-missing-await
Fix missing await
2 parents 2b0362b + e78783d commit a8740c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iphone-simulator-xcode-simctl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
194194

195195
public async startSimulator(options: IOptions, device?: IDevice): Promise<void> {
196196
if (!device && options.device) {
197-
this.verifyDevice(options.device);
197+
await this.verifyDevice(options.device);
198198
}
199199

200200
device = device || await this.getDeviceToRun(options);
201201

202202
// In case the id is undefined, skip verification - we'll start default simulator.
203203
if (device && device.id) {
204-
this.verifyDevice(device);
204+
await this.verifyDevice(device);
205205
}
206206

207207
if (!device || !device.runtimeVersion || !device.fullId) {

0 commit comments

Comments
 (0)