Changeset 14140


Ignore:
Timestamp:
Jul 24, 2013, 12:00:03 AM (9 years ago)
Author:
jordan
Message:

always clean up the paused_easy_handles list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r14075 r14140  
    1111 */
    1212
     13#include <assert.h>
    1314#include <string.h> /* strlen (), strstr () */
    1415#include <stdlib.h> /* getenv () */
     
    495496              CURL * e = msg->easy_handle;
    496497              curl_easy_getinfo (e, CURLINFO_PRIVATE, (void*)&task);
     498              assert (e == task->curl_easy);
    497499              curl_easy_getinfo (e, CURLINFO_RESPONSE_CODE, &task->code);
    498500              curl_easy_getinfo (e, CURLINFO_REQUEST_SIZE, &req_bytes_sent);
     
    501503              task->did_timeout = !task->code && (total_time >= task->timeout_secs);
    502504              curl_multi_remove_handle (multi, e);
     505              tr_list_remove_data (&paused_easy_handles, e);
    503506              curl_easy_cleanup (e);
    504507              tr_runInEventThread (task->session, task_finish_func, task);
     
    519522
    520523  /* cleanup */
     524  tr_list_free (&paused_easy_handles, NULL);
    521525  curl_multi_cleanup (multi);
    522526  tr_lockFree (web->taskLock);
Note: See TracChangeset for help on using the changeset viewer.