From 5a60e4549d785da428afd058c19c0bbfd36bc004 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 10 Jan 2010 08:53:17 +0000 Subject: [PATCH] (trunk libT) #2416 "crash in event_queue_insert" -- another guess, based on the idea that we might queue two actions (one to insert, one to delete) on the same event before libevent's dispatcher is invoked --- libtransmission/web.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/web.c b/libtransmission/web.c index f954f9e14..a3cefb458 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -341,6 +341,7 @@ sock_cb( CURL * e UNUSED, curl_socket_t fd, int curl_what, event_set( io_event, fd, ev_what, event_cb, web ); assert( io_event->ev_base != NULL ); event_add( io_event, NULL ); + event_loop( EVLOOP_ONCE ); } if( ( io_event != NULL ) && ( curl_what & CURL_POLL_REMOVE ) )