Stabilize steam proxy mechanism even more

This hopefully fixes issue #37
This commit is contained in:
momo5502 2022-10-01 20:19:32 +02:00
parent 5fc3ee3588
commit 258e8c88cc

View File

@ -191,7 +191,7 @@ namespace steam_proxy
void pre_start() override void pre_start() override
{ {
load_client(); load_client();
clean_up_on_error(); perform_cleanup_if_needed();
} }
void post_unpack() override void post_unpack() override
@ -218,6 +218,8 @@ namespace steam_proxy
MessageBoxA(GetForegroundWindow(), e.what(), "BOIII Error", MB_ICONERROR); MessageBoxA(GetForegroundWindow(), e.what(), "BOIII Error", MB_ICONERROR);
TerminateProcess(GetCurrentProcess(), 1234); TerminateProcess(GetCurrentProcess(), 1234);
} }
clean_up_on_error();
} }
void pre_destroy() override void pre_destroy() override