Ignore:
Timestamp:
Feb 18, 2011, 12:24:15 AM (11 years ago)
Author:
jch
Message:

Add assertions to libevent callbacks.

They should never be called with a UTP socket.

File:
1 edited

Legend:

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

    r11908 r11909  
    219219
    220220    assert( tr_isPeerIo( io ) );
     221    assert( io->socket >= 0 );
    221222
    222223    io->pendingEvents &= ~EV_READ;
     
    294295
    295296    assert( tr_isPeerIo( io ) );
     297    assert( io->socket >= 0 );
    296298
    297299    io->pendingEvents &= ~EV_WRITE;
Note: See TracChangeset for help on using the changeset viewer.