Changeset 11662


Ignore:
Timestamp:
Jan 9, 2011, 11:14:17 PM (11 years ago)
Author:
jch
Message:

Fix incorrect usage of event_new in UDP code.

Apparently you need to pass session->event_base as the first argument.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r11659 r11662  
    316316    tr_threadNew( dht_bootstrap, cl );
    317317
    318     dht_timer = evtimer_new( NULL, timer_callback, session );
     318    dht_timer = evtimer_new( session->event_base, timer_callback, session );
    319319    tr_timerAdd( dht_timer, 0, tr_cryptoWeakRandInt( 1000000 ) );
    320320
  • trunk/libtransmission/tr-udp.c

    r11661 r11662  
    173173    }
    174174    ss->udp_event =
    175         event_new(NULL, ss->udp_socket, EV_READ | EV_PERSIST,
     175        event_new(ss->event_base, ss->udp_socket, EV_READ | EV_PERSIST,
    176176                  event_callback, ss);
    177177    if( ss->udp_event == NULL )
     
    183183    if(ss->udp6_socket >= 0) {
    184184        ss->udp6_event =
    185             event_new(NULL, ss->udp6_socket, EV_READ | EV_PERSIST,
     185            event_new(ss->event_base, ss->udp6_socket, EV_READ | EV_PERSIST,
    186186                      event_callback, ss);
    187187        if(ss->udp6_event == NULL)
Note: See TracChangeset for help on using the changeset viewer.