diff --git a/lib/ubus.c b/lib/ubus.c index 981e337e..62e72295 100644 --- a/lib/ubus.c +++ b/lib/ubus.c @@ -665,6 +665,9 @@ uc_ubus_have_uloop(void) bool prev = uloop_cancelled; bool active; + if (uloop_fd_set_cb) + return true; + uloop_cancelled = true; active = uloop_cancelling(); uloop_cancelled = prev;