Patch up removal of while loop in Core

This commit is contained in:
Tixx
2024-08-15 23:36:00 +02:00
parent deed24f6e8
commit a128099619
3 changed files with 13 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ bool SecurityWarning() {
confirmed = -1;
CoreSend("WMODS_FOUND");
while (confirmed == -1)
while (confirmed == -1 || Terminate == false)
std::this_thread::sleep_for(std::chrono::milliseconds(10));
if (confirmed == 1)
@@ -73,6 +73,7 @@ void StartSync(const std::string& Data) {
else
UlStatus = "UlConnection Failed! (WSA failed to start)";
Terminate = true;
CoreSend("L");
return;
}
CheckLocalKey();