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; },