mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
delete incomplete map file when download is aborted
(cherry picked from commit github.com/teeworlds/teeworlds/commit/494f74902dcb0271235d3a0831ecd4c6db58b7e9)
This commit is contained in:
parent
3d3c190cd4
commit
2e31cf3258
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue