mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Update MotD when MotD fails to download
This commit is contained in:
@@ -729,6 +729,8 @@ bool Client::CheckUpdate(http::Request *updateRequest, bool checkSession)
|
|||||||
//free(data);
|
//free(data);
|
||||||
if (usingAltUpdateServer && !checkSession)
|
if (usingAltUpdateServer && !checkSession)
|
||||||
this->messageOfTheDay = String::Build("HTTP Error ", status, " while checking for updates: ", http::StatusText(status));
|
this->messageOfTheDay = String::Build("HTTP Error ", status, " while checking for updates: ", http::StatusText(status));
|
||||||
|
else
|
||||||
|
this->messageOfTheDay = String::Build("HTTP Error ", status, " while fetching MotD");
|
||||||
}
|
}
|
||||||
else if(data.size())
|
else if(data.size())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user