Changeset 10534


Ignore:
Timestamp:
Apr 27, 2010, 1:43:03 PM (11 years ago)
Author:
charles
Message:

(trunk libT) fix a new assertion error from the nightlies reported by Ryoujin

File:
1 edited

Legend:

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

    r10525 r10534  
    462462    assert( io->session != NULL );
    463463    assert( io->session->events != NULL );
    464     assert( io->socket >= 0 );
    465464    assert( event_initialized( &io->event_read ) );
    466465    assert( event_initialized( &io->event_write ) );
     466
     467    if( io->socket < 0 )
     468        return;
    467469
    468470    if( ( event & EV_READ ) && ! ( io->pendingEvents & EV_READ ) )
Note: See TracChangeset for help on using the changeset viewer.