From cb2614ff5c4f6d5c6b66feeb8754707fed27f555 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Thu, 15 Sep 2022 02:08:10 +0200 Subject: [PATCH] Treat manual aborts the same way as errors for map downloads --- src/engine/client/client.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 7a84afd16..d0ff595f8 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -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)