* ecore_con_url: Workaround progress callback called by curl after
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Oct 2009 13:33:40 +0000 (13:33 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Oct 2009 13:33:40 +0000 (13:33 +0000)
destruction of the Ecore_Con_Url object.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@43228 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_url.c

index 9881562..15151ab 100644 (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;