downloader: empty file fix
This commit is contained in:
parent
b87561a7ff
commit
f656b2e62e
@ -163,6 +163,8 @@ void FileGet::priv::get_perform()
|
|||||||
m_stopped = true;
|
m_stopped = true;
|
||||||
fclose(file);
|
fclose(file);
|
||||||
cancel = true;
|
cancel = true;
|
||||||
|
if (m_written == 0)
|
||||||
|
std::remove(m_tmp_path.string().c_str());
|
||||||
wxCommandEvent* evt = new wxCommandEvent(EVT_DWNLDR_FILE_PAUSED);
|
wxCommandEvent* evt = new wxCommandEvent(EVT_DWNLDR_FILE_PAUSED);
|
||||||
evt->SetInt(m_id);
|
evt->SetInt(m_id);
|
||||||
m_evt_handler->QueueEvent(evt);
|
m_evt_handler->QueueEvent(evt);
|
||||||
|
Loading…
Reference in New Issue
Block a user