mirror of https://github.com/getdnsapi/getdns.git
Merge pull request #486 from elindsey/eli
only check for and process read/write events if status is success
This commit is contained in:
commit
ebeff97192
|
@ -134,8 +134,8 @@ static void
|
|||
getdns_libuv_cb(uv_poll_t *poll, int status, int events)
|
||||
{
|
||||
getdns_eventloop_event *el_ev = (getdns_eventloop_event *)poll->data;
|
||||
(void)status;
|
||||
|
||||
if (status == 0) {
|
||||
if (events & UV_READABLE) {
|
||||
assert(el_ev->read_cb);
|
||||
DEBUG_UV("enter libuv_read_cb(el_ev = %p, el_ev->ev = %p)\n"
|
||||
|
@ -154,6 +154,7 @@ getdns_libuv_cb(uv_poll_t *poll, int status, int events)
|
|||
assert(ASSERT_UNREACHABLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
#ifdef HAVE_NEW_UV_TIMER_CB
|
||||
|
|
Loading…
Reference in New Issue