(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

This commit is contained in:
Charles Kerr 2010-01-10 08:53:17 +00:00
parent d81389da50
commit 5a60e4549d
1 changed files with 1 additions and 0 deletions

View 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 ) )