* ecore_con_url: Workaround progress callback called by curl after

destruction of the Ecore_Con_Url object.


SVN revision: 43228
This commit is contained in:
Cedric BAIL 2009-10-23 13:33:40 +00:00
parent b36917b180
commit 2829dfc366
1 changed files with 4 additions and 0 deletions

View File

@ -327,6 +327,10 @@ ecore_con_url_destroy(Ecore_Con_Url *url_con)
}
if (url_con->curl_easy)
{
// FIXME: For an unknown reason, progress continue to arrive after destruction
// this prevent any further call to the callback.
curl_easy_setopt(url_con->curl_easy, CURLOPT_PROGRESSFUNCTION, NULL);
if (url_con->active)
{
url_con->active = 0;