From f71237476e7c224308b9c5e6bb22c891440d358b Mon Sep 17 00:00:00 2001 From: Harry <45198715+harrytothemoon@users.noreply.github.com> Date: Thu, 19 Jan 2023 22:19:18 +0800 Subject: [PATCH] chore: fix flush async function (#492) --- packages/telemetry/src/telemetry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/telemetry/src/telemetry.ts b/packages/telemetry/src/telemetry.ts index 37b7be5eb..812c0a216 100644 --- a/packages/telemetry/src/telemetry.ts +++ b/packages/telemetry/src/telemetry.ts @@ -147,7 +147,7 @@ export class Telemetry { } async flush() { - Promise.all(this.queue).catch(() => null); + await Promise.all(this.queue).catch(() => null); } private _notify() {