mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Treat manual aborts the same way as errors for map downloads
This commit is contained in:
parent
9f1dd0d3c4
commit
cb2614ff5c
|
@ -2891,16 +2891,12 @@ void CClient::Update()
|
|||
{
|
||||
if(m_pMapdownloadTask->State() == HTTP_DONE)
|
||||
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");
|
||||
ResetMapDownload();
|
||||
SendMapRequest();
|
||||
}
|
||||
else if(m_pMapdownloadTask->State() == HTTP_ABORTED)
|
||||
{
|
||||
m_pMapdownloadTask = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if(m_pDDNetInfoTask)
|
||||
|
|
Loading…
Reference in a new issue