[News] Add early termination support
This commit is contained in:
parent
320d51ae32
commit
171cdcf0fd
@ -230,15 +230,15 @@ namespace Components
|
|||||||
News::Thread = std::thread([]()
|
News::Thread = std::thread([]()
|
||||||
{
|
{
|
||||||
Changelog::LoadChangelog();
|
Changelog::LoadChangelog();
|
||||||
|
if (News::Terminate) return;
|
||||||
|
|
||||||
std::string data = Utils::Cache::GetFile("/iw4/motd.txt");
|
std::string data = Utils::Cache::GetFile("/iw4/motd.txt");
|
||||||
|
|
||||||
if (!data.empty())
|
if (!data.empty())
|
||||||
{
|
{
|
||||||
Localization::Set("MPUI_MOTD_TEXT", data);
|
Localization::Set("MPUI_MOTD_TEXT", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Loader::PerformingUnitTests())
|
if (!Loader::PerformingUnitTests() && !News::Terminate)
|
||||||
{
|
{
|
||||||
News::GetLatestUpdater();
|
News::GetLatestUpdater();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user