mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
evdns: we don't need to add retry timer in transmit_to it will be done on fail
This commit is contained in:
parent
610410b586
commit
d83b3371e9
5
evdns.c
5
evdns.c
@ -2199,9 +2199,8 @@ evdns_request_transmit_to(struct request *req, struct nameserver *server) {
|
||||
ASSERT_VALID_REQUEST(req);
|
||||
|
||||
if (server->requests_inflight == 1 &&
|
||||
req->base->disable_when_inactive) {
|
||||
if (event_add(&server->event, NULL) < 0 ||
|
||||
evtimer_add(&req->ns->timeout_event, &req->base->global_nameserver_probe_initial_timeout) < 0)
|
||||
req->base->disable_when_inactive &&
|
||||
event_add(&server->event, NULL) < 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user