From: Alexandru Ardelean Date: Mon, 15 Sep 2014 12:42:09 +0000 (+0300) Subject: libubus: restore uloop_cancelled on timeout X-Git-Url: http://git.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=e52db46c9c5d8eabe5abaccf28468c6e0b99be95 libubus: restore uloop_cancelled on timeout Context: 1 loop with a single ubus_invoke() that times out calls uloop_end() which ends the loop, and thus ends the application. Signed-off-by: Felix Fietkau --- diff --git a/libubus-req.c b/libubus-req.c index ebc5806..d44db51 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -153,6 +153,7 @@ int ubus_complete_request(struct ubus_context *ctx, struct ubus_request *req, timeout = time_end - get_time_msec(); if (timeout <= 0) { ubus_set_req_status(req, UBUS_STATUS_TIMEOUT); + uloop_cancelled = cancelled; break; } }