ecore_file_download(): Call the completion_cb (with error status) when a download...
authordavemds <davemds@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 18 May 2010 23:06:07 +0000 (23:06 +0000)
committerdavemds <davemds@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 18 May 2010 23:06:07 +0000 (23:06 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@48988 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_file/ecore_file_download.c

index 94682c5..70fdc68 100644 (file)
@@ -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