Merge pull request #417 from slinkstr/bugfix/fpfc-restore/416

[bugfix-416] Wait for SteamVR folder rename before exit
This commit is contained in:
MathieuG-P
2024-02-12 15:22:57 +01:00
committed by GitHub
@@ -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();