diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index c9aa6742..fa48c972 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -50,9 +50,9 @@ namespace Components News::Thread = new std::thread([] () { - Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/changelog.txt").Get().data()); + Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/changelog.txt").SetTimeout(5000)->Get().data()); - std::string data = Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/motd.txt").Get(); + std::string data = Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/motd.txt").SetTimeout(5000)->Get(); if (data.size()) { diff --git a/src/Main.cpp b/src/Main.cpp index 998ce035..b0ab0cc2 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -14,7 +14,7 @@ namespace Main { DWORD result = (Components::Loader::PerformUnitTests() ? 0 : -1); Components::Loader::Uninitialize(); - ExitProcess(result); + exit(result); } #else if (Components::Flags::HasFlag("tests"))