* ecore_con_url: The fd could change for a same url. So destroy it and recreat.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 13 Nov 2009 18:12:09 +0000 (18:12 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 13 Nov 2009 18:12:09 +0000 (18:12 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@43670 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_url.c

index cfa6dc1..e2a80c3 100644 (file)
@@ -1049,10 +1049,13 @@ _ecore_con_url_perform(Ecore_Con_Url *url_con)
    /* This one can't be stopped, or the download never start. */
    while (curl_multi_perform(curlm, &still_running) == CURLM_CALL_MULTI_PERFORM);
 
-   completed_immediately =  _ecore_con_url_process_completed_jobs(url_con);
+   completed_immediately = _ecore_con_url_process_completed_jobs(url_con);
 
    if (!completed_immediately)
      {
+       if (url_con->fd_handler)
+         ecore_main_fd_handler_del(url_con->fd_handler);
+
        /* url_con still active -- set up an fd_handler */
        FD_ZERO(&read_set);
        FD_ZERO(&write_set);