diff --git a/app/core/Engine/Engine.ts b/app/core/Engine/Engine.ts index 35662c9d8fcf..1494a2c033f7 100644 --- a/app/core/Engine/Engine.ts +++ b/app/core/Engine/Engine.ts @@ -2155,8 +2155,8 @@ export default { return instance.resetState(); }, - destroyEngine() { - instance?.destroyEngineInstance(); + destroyEngine: async () => { + await instance?.destroyEngineInstance(); instance = null; },