From 9eb53ac0cc5426fe511655acfb61a21eb6334b56 Mon Sep 17 00:00:00 2001 From: Lorenz Sieben Date: Wed, 12 Jul 2023 18:07:32 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20wait=20for=20the=20em?= =?UTF-8?q?ulator=20that=20hasn=E2=80=99t=20started=20yet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/record-traffic.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/record-traffic.ts b/src/commands/record-traffic.ts index f65b32b..16205d6 100644 --- a/src/commands/record-traffic.ts +++ b/src/commands/record-traffic.ts @@ -274,6 +274,9 @@ The app can optionally be uninstalled automatically afterwards.`; }, { title: 'Waiting for deviceā€¦', + // If an emulator name is set, we start the emulator in `ensureDevice` and wait there. + // (fixed in https://github.com/tweaselORG/cli/pull/31) + enabled: () => !flags['emulator-name'], task: async () => ctx.analysis.platform.waitForDevice(), }, {