From 05f78fca2cb20641458126381402b4f1da8d00cc Mon Sep 17 00:00:00 2001 From: Owen Craston Date: Mon, 6 Jan 2025 16:33:04 -0500 Subject: [PATCH] await destroy engine --- app/core/Engine/Engine.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/Engine/Engine.ts b/app/core/Engine/Engine.ts index fc3ea4d2510..55604d04a56 100644 --- a/app/core/Engine/Engine.ts +++ b/app/core/Engine/Engine.ts @@ -2152,8 +2152,8 @@ export default { return instance.resetState(); }, - destroyEngine() { - instance?.destroyEngineInstance(); + destroyEngine: async () => { + await instance?.destroyEngineInstance(); instance = null; },