mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
(trunk libT) fix a new assertion error from the nightlies reported by Ryoujin
This commit is contained in:
parent
3845a60c2f
commit
efe648e2d7
1 changed files with 3 additions and 1 deletions
|
@ -461,10 +461,12 @@ event_enable( tr_peerIo * io, short event )
|
|||
assert( tr_amInEventThread( io->session ) );
|
||||
assert( io->session != NULL );
|
||||
assert( io->session->events != NULL );
|
||||
assert( io->socket >= 0 );
|
||||
assert( event_initialized( &io->event_read ) );
|
||||
assert( event_initialized( &io->event_write ) );
|
||||
|
||||
if( io->socket < 0 )
|
||||
return;
|
||||
|
||||
if( ( event & EV_READ ) && ! ( io->pendingEvents & EV_READ ) )
|
||||
{
|
||||
dbgmsg( io, "enabling libevent ready-to-read polling" );
|
||||
|
|
Loading…
Reference in a new issue