extra: remove file if the exit code is not 200

This commit is contained in:
Marcel Hollerbach 2017-01-14 22:55:02 +01:00
parent bec53e0c59
commit fd69b2797b
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}