]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #2416 "crash in event_queue_insert" -- another guess, based on the idea...
authorCharles Kerr <charles@transmissionbt.com>
Sun, 10 Jan 2010 08:53:17 +0000 (08:53 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 10 Jan 2010 08:53:17 +0000 (08:53 +0000)
libtransmission/web.c

index f954f9e1408d58e409a04cc1747c88abdcf449bb..a3cefb4585fd167e248b478a96fc6a6f1909a05a 100644 (file)
@@ -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 ) )