diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index ff5f9ec82..d12f5c926 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -801,7 +801,10 @@ void CClient::DisconnectWithReason(const char *pReason) if(m_pMapdownloadTask) m_pMapdownloadTask->Abort(); if(m_MapdownloadFile) + { io_close(m_MapdownloadFile); + Storage()->RemoveFile(m_aMapdownloadFilename, IStorage::TYPE_SAVE); + } m_MapdownloadFile = 0; m_MapdownloadSha256Present = false; m_MapdownloadSha256 = SHA256_ZEROED;