[bugfix-416] Wait for SteamVR folder rename before exit

This commit is contained in:
slinky
2024-02-03 22:21:00 -08:00
parent c80685065e
commit 0b24a5ceb2
@@ -123,13 +123,16 @@ export class SteamLauncherService extends AbstractLauncherService implements Sto
})
);
await launchPromise.then(exitCode => {
try {
const exitCode = await launchPromise;
log.info("BS process exit code", exitCode);
}).catch(err => {
}
catch(err: any) {
throw CustomError.fromError(err, BSLaunchError.BS_EXIT_ERROR);
}).finally(() => {
this.restoreSteamVR().catch(log.error);
});
}
finally {
await this.restoreSteamVR().catch(log.error);
}
})().then(() => {
obs.complete();