mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-29 06:15:16 -04:00
do not delete uninitialized timeout event in evdns
svn:r697
This commit is contained in:
parent
502929cdf2
commit
3ef1f50415
@ -61,6 +61,7 @@ Changes in current version:
|
||||
o switch thread support so that locks get allocated as they are needed.
|
||||
o make event methods static so that they are not exported; from Andrei Nigmatulin
|
||||
o make RPC replies use application/octet-stream as mime type
|
||||
o do not delete uninitialized timeout event in evdns
|
||||
|
||||
Changes in 1.4.0:
|
||||
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
||||
|
1
evdns.c
1
evdns.c
@ -2022,6 +2022,7 @@ evdns_clear_nameservers_and_suspend(void)
|
||||
while (1) {
|
||||
struct nameserver *next = server->next;
|
||||
(void) event_del(&server->event);
|
||||
if (evtimer_initialized(&server->timeout_event))
|
||||
(void) evtimer_del(&server->timeout_event);
|
||||
if (server->socket >= 0)
|
||||
CLOSE_SOCKET(server->socket);
|
||||
|
Loading…
x
Reference in New Issue
Block a user