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