Ecore File Download: don't mess with Ecore_Con event status

For some reason it was passing !ev->status instead of ev->status
to completion_cb, so all the information that should be provided
(200, 400 or 404 error, ...) was becoming 0.


SVN revision: 61099
This commit is contained in:
Bruno Dilly 2011-07-06 20:56:55 +00:00
parent 153c7394df
commit 8c90fc2072
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ _ecore_file_download_url_complete_cb(void *data __UNUSED__, int type __UNUSED__,
if (!ECORE_MAGIC_CHECK(job, ECORE_MAGIC_FILE_DOWNLOAD_JOB)) return ECORE_CALLBACK_PASS_ON;
if (job->completion_cb)
job->completion_cb(ecore_con_url_data_get(job->url_con), job->dst, !ev->status);
job->completion_cb(ecore_con_url_data_get(job->url_con), job->dst, ev->status);
_job_list = eina_list_remove(_job_list, job);
fclose(job->file);