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 <nbd@openwrt.org>
This commit is contained in:
parent
9562291f68
commit
e52db46c9c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue