Ignore:
Timestamp:
Oct 23, 2009, 3:41:36 AM (12 years ago)
Author:
charles
Message:

(trunk) trunk's just been too stable lately. #2119: reload settings.json on SIGHUP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r9273 r9387  
    458458    evbuffer_free( io->outbuf );
    459459    evbuffer_free( io->inbuf );
    460     tr_netClose( io->socket );
     460    tr_netClose( io->session, io->socket );
    461461    tr_cryptoFree( io->crypto );
    462462    __tr_list_destroy( &io->outbuf_datatypes, trDatatypeFree );
     
    549549tr_peerIoReconnect( tr_peerIo * io )
    550550{
     551    tr_session * session;
     552
     553    assert( tr_isPeerIo( io ) );
    551554    assert( !tr_peerIoIsIncoming( io ) );
    552555
     556    session = tr_peerIoGetSession( io );
     557
    553558    if( io->socket >= 0 )
    554         tr_netClose( io->socket );
    555 
    556     io->socket = tr_netOpenTCP( io->session, &io->addr, io->port );
     559        tr_netClose( session, io->socket );
     560
     561    io->socket = tr_netOpenTCP( session, &io->addr, io->port );
    557562    if( io->socket >= 0 )
    558563    {
    559         tr_netSetTOS( io->socket, io->session->peerSocketTOS );
     564        tr_netSetTOS( io->socket, session->peerSocketTOS );
    560565        return 0;
    561566    }
Note: See TracChangeset for help on using the changeset viewer.