HG: do not block when loopback is enabled and no fd is exposed by NA
@@ -3673,7 +3673,8 @@ hg_core_progress(struct hg_core_private_context *context, unsigned int timeout)
hg_atomic_set32(&context->completion_queue_must_notify, 1);
}
hg_thread_mutex_unlock(&context->completion_queue_notify_mutex);
- } else if (timeout && hg_core_poll_try_wait(context)) {
+ } else if (!HG_CORE_CONTEXT_CLASS(context)->loopback && timeout &&
+ hg_core_poll_try_wait(context)) {
/* This is the case for NA plugins that don't expose a fd */
poll_timeout = (unsigned int) (remaining * 1000.0);
}
