Treat manual aborts the same way as errors for map downloads

This commit is contained in:
heinrich5991 2022-09-15 02:08:10 +02:00
parent 9f1dd0d3c4
commit cb2614ff5c

View file

@ -2891,16 +2891,12 @@ void CClient::Update()
{ {
if(m_pMapdownloadTask->State() == HTTP_DONE) if(m_pMapdownloadTask->State() == HTTP_DONE)
FinishMapDownload(); FinishMapDownload();
else if(m_pMapdownloadTask->State() == HTTP_ERROR) else if(m_pMapdownloadTask->State() == HTTP_ERROR || m_pMapdownloadTask->State() == HTTP_ABORTED)
{ {
dbg_msg("webdl", "http failed, falling back to gameserver"); dbg_msg("webdl", "http failed, falling back to gameserver");
ResetMapDownload(); ResetMapDownload();
SendMapRequest(); SendMapRequest();
} }
else if(m_pMapdownloadTask->State() == HTTP_ABORTED)
{
m_pMapdownloadTask = NULL;
}
} }
if(m_pDDNetInfoTask) if(m_pDDNetInfoTask)