Fix UDP error handling.

This commit is contained in:
Juliusz Chroboczek 2011-01-09 23:04:56 +00:00
parent 1e84b07ed4
commit ff0393acbc
1 changed files with 2 additions and 2 deletions

View File

@ -174,8 +174,8 @@ tr_udpInit(tr_session *ss, const tr_address * addr)
ss->udp_event =
event_new(NULL, ss->udp_socket, EV_READ | EV_PERSIST,
event_callback, ss);
tr_nerr("UDP", "Couldn't allocate IPv4 event");
/* Don't bother recovering for now. */
if( ss->udp_event == NULL )
tr_nerr("UDP", "Couldn't allocate IPv4 event");
ipv6:
if(tr_globalIPv6())