Ignore:
Timestamp:
Apr 22, 2006, 9:39:17 PM (16 years ago)
Author:
titer
Message:

Clean up, perform all DNS resolutions in a common thread. This should
fix the remaining issues with many open torrents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r219 r237  
    3131static void acceptStop( tr_handle_t * h );
    3232
    33 /* Used in tr_netResolve */
    34 extern tr_lock_t gethostbynameLock;
    35 
    3633/***********************************************************************
    3734 * tr_init
     
    4441    int           i, r;
    4542
    46     tr_lockInit( &gethostbynameLock );
     43    tr_netResolveThreadInit();
    4744
    4845    h = calloc( sizeof( tr_handle_t ), 1 );
     
    541538    free( h );
    542539
    543     tr_lockClose( &gethostbynameLock );
     540    tr_netResolveThreadClose();
    544541}
    545542
Note: See TracChangeset for help on using the changeset viewer.