Abort skin downloads too (fixes #5505)

This commit is contained in:
def 2022-06-27 00:29:52 +02:00
parent 80e6391525
commit 4733cdc769

View file

@ -29,6 +29,11 @@ public:
char m_aPath[IO_MAX_PATH_LENGTH];
char m_aName[24];
~CDownloadSkin()
{
if(m_pTask)
m_pTask->Abort();
}
bool operator<(const CDownloadSkin &Other) const { return str_comp(m_aName, Other.m_aName) < 0; }
bool operator<(const char *pOther) const { return str_comp(m_aName, pOther) < 0; }
bool operator==(const char *pOther) const { return !str_comp(m_aName, pOther); }