From 41260f3dfb86cbbfb049c0e626a18e297d3b468d Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Wed, 9 Feb 2022 17:50:20 +0200 Subject: [PATCH] (probably) fixed issue with launcher's window not disappearing --- src/ts/launcher/states/Launch.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 998cf83..9175067 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -200,8 +200,7 @@ export default (launcher: Launcher): Promise => { cwd: await constants.paths.gameDir }); - // Stop monitoring of the process - process.runningInterval = null; + // Stop monitoring of the process output process.outputInterval = null; // Game was started by the launcher.bat file @@ -276,7 +275,7 @@ export default (launcher: Launcher): Promise => { } }; - setTimeout(waiter, 5000); + process.finish(() => waiter()); } }) .catch(() => {