forked from enlightenment/efl
ecore_file_download(): Call the completion_cb (with error status) when a download is aborted
SVN revision: 48988
This commit is contained in:
parent
7bf5eee839
commit
ee29a2423d
|
@ -296,7 +296,8 @@ _ecore_file_download_curl(const char *url, const char *dst,
|
|||
#endif
|
||||
|
||||
/**
|
||||
* Abort the given download job
|
||||
* Abort the given download job and call the @p completion_cb function with a
|
||||
* @status of 1 (error)
|
||||
* @param job The download job to abort
|
||||
*/
|
||||
|
||||
|
@ -304,6 +305,8 @@ EAPI void
|
|||
ecore_file_download_abort(Ecore_File_Download_Job *job)
|
||||
{
|
||||
#ifdef BUILD_ECORE_CON
|
||||
if (job->completion_cb)
|
||||
job->completion_cb(ecore_con_url_data_get(job->url_con), job->dst, 1);
|
||||
# ifdef HAVE_CURL
|
||||
ecore_con_url_destroy(job->url_con);
|
||||
# endif
|
||||
|
|
Loading…
Reference in New Issue