(probably) fixed issue with launcher's window not disappearing

This commit is contained in:
Observer KRypt0n_ 2022-02-09 17:50:20 +02:00
parent 1dfafd3da4
commit 41260f3dfb
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA

View file

@ -200,8 +200,7 @@ export default (launcher: Launcher): Promise<void> => {
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<void> => {
}
};
setTimeout(waiter, 5000);
process.finish(() => waiter());
}
})
.catch(() => {