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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.