mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28: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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue