Changeset 9992


Ignore:
Timestamp:
Jan 22, 2010, 3:39:21 AM (12 years ago)
Author:
charles
Message:

(trunk libT) if we're calling evdns_init(), we probably ought to call evdns_shutdown() on exit...

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/trevent.c

    r9990 r9992  
    2020
    2121#include <event.h>
    22 #include <evdns.h>
    2322
    2423#include "transmission.h"
     
    221220    eh->base = event_init( );
    222221    eh->session->events = eh;
    223     evdns_init( );
    224 
    225222
    226223    /* listen to the pipe's read fd */
  • trunk/libtransmission/web.c

    r9990 r9992  
    7070web_free( tr_web * g )
    7171{
     72    evdns_shutdown( TRUE );
    7273    curl_multi_cleanup( g->multi );
    7374    evtimer_del( &g->timer_event );
     
    587588
    588589    web->multi = curl_multi_init( );
     590
     591    evdns_init( );
     592
    589593    curl_multi_setopt( web->multi, CURLMOPT_SOCKETDATA, web );
    590594    curl_multi_setopt( web->multi, CURLMOPT_SOCKETFUNCTION, sock_cb );
Note: See TracChangeset for help on using the changeset viewer.