Changeset 10525


Ignore:
Timestamp:
Apr 23, 2010, 11:48:52 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3164 "crash in tr_peerIoReconnect()" -- after attempting to reconnect, re-enable the libevent monitoring if the socket can't be created.

File:
1 edited

Legend:

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

    r10524 r10525  
    649649    event_set( &io->event_read, io->socket, EV_READ, event_read_cb, io );
    650650    event_set( &io->event_write, io->socket, EV_WRITE, event_write_cb, io );
    651     event_enable( io, pendingEvents );
    652651
    653652    if( io->socket >= 0 )
    654653    {
     654        event_enable( io, pendingEvents );
    655655        tr_netSetTOS( io->socket, session->peerSocketTOS );
    656656        maybeSetCongestionAlgorithm( io->socket, session->peer_congestion_algorithm );
Note: See TracChangeset for help on using the changeset viewer.