extra: remove file if the exit code is not 200
This commit is contained in:
parent
bec53e0c59
commit
fd69b2797b
|
@ -348,6 +348,9 @@ _download_complete_cb(void *data, const char *file EINA_UNUSED, int status EINA_
|
|||
|
||||
job->theme->state &= (~job->nand_mask);
|
||||
|
||||
if (status != 200)
|
||||
ecore_file_remove(file);
|
||||
|
||||
if (job->progress->done_cb)
|
||||
job->progress->done_cb(job->progress->data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue