mirror of https://github.com/getdnsapi/getdns.git
Feed poll with millisecond timeout
This commit is contained in:
parent
45ee18e285
commit
17da80a828
|
@ -290,7 +290,7 @@ default_eventloop_run_once(getdns_eventloop *loop, int blocking)
|
|||
else if (! blocking || now > timeout) {
|
||||
poll_timeout = 0;
|
||||
} else {
|
||||
poll_timeout = (timeout - now) * 1000; /* turn seconds into millseconds */
|
||||
poll_timeout = (timeout - now) / 1000; /* turn microseconds into milliseconds */
|
||||
}
|
||||
#ifdef USE_WINSOCK
|
||||
if (WSAPoll(pfds, num_pfds, poll_timeout) < 0) {
|
||||
|
|
Loading…
Reference in New Issue