fix backport issue

v1.32
Brad House 2 weeks ago
parent 76e1a5cf89
commit 2e82080a3e
  1. 6
      src/lib/ares_event_thread.c

@ -327,13 +327,13 @@ static void *ares_event_thread(void *arg)
e->ev_sys->wait(e, timeout_ms);
/* Relock before we loop again */
ares_thread_mutex_lock(e->mutex);
ares__thread_mutex_lock(e->mutex);
/* Each iteration should do timeout processing */
if (e->isup) {
ares_thread_mutex_unlock(e->mutex);
ares__thread_mutex_unlock(e->mutex);
ares_process_fd(e->channel, ARES_SOCKET_BAD, ARES_SOCKET_BAD);
ares_thread_mutex_lock(e->mutex);
ares__thread_mutex_lock(e->mutex);
}
}

Loading…
Cancel
Save