dnl AM_CONDITIONAL + AC_CONFIG_SUBDIRS don't seem to play nice
AC_CONFIG_SUBDIRS([third-party/libevent])
libevent_source=bundled
-AC_CHECK_LIB([event],[evbuffer_readln],
+AC_CHECK_LIB([event],[evutil_vsnprintf],
[libevent_found=yes],
[libevent_found=no],
[$libevent_extra_libs])
assert( io->session->events != NULL );
dbgmsg( io, "in tr_peerIo destructor" );
- event_disable( io, ~0 );
+ event_disable( io, EV_READ | EV_WRITE );
tr_bandwidthDestruct( &io->bandwidth );
evbuffer_free( io->outbuf );
evbuffer_free( io->inbuf );
session = tr_peerIoGetSession( io );
pendingEvents = io->pendingEvents;
- event_disable( io, ~0 );
+ event_disable( io, EV_READ | EV_WRITE );
if( io->socket >= 0 )
tr_netClose( session, io->socket );