]> granicus.if.org Git - transmission/commitdiff
(trunk libT) tweak the peer-io bugfix
authorCharles Kerr <charles@transmissionbt.com>
Mon, 18 Jan 2010 19:26:46 +0000 (19:26 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Mon, 18 Jan 2010 19:26:46 +0000 (19:26 +0000)
configure.ac
libtransmission/peer-io.c

index de78b6d25c6a5d79d8e942f3918f49fd4501c462..9920fd484eec19d48b6649e55a81f0e9435013f4 100644 (file)
@@ -192,7 +192,7 @@ dnl because "make dist" needs its Makefiles to exist, and
 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])
index 363e039fe5a3b23bd09dfaa9d5c9c8ceb4a3c44f..3f1fd89b9650fe71451ecc190a59403cad85b458 100644 (file)
@@ -530,7 +530,7 @@ io_dtor( void * vio )
     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 );
@@ -634,7 +634,7 @@ tr_peerIoReconnect( tr_peerIo * io )
     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 );