X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus-req.c;h=f24f033d9d65da38ebbd5dac53f2cce4a16b4df3;hp=7378a92405fe3d757536195351ecf2a22d519b6d;hb=3869e0ca0774e8f17597db5b60bee97d21b5b1fa;hpb=bbd3fbc9cc914abfca9030253c0f2a68e1144c85 diff --git a/libubus-req.c b/libubus-req.c index 7378a92..f24f033 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -171,9 +171,13 @@ int ubus_complete_request(struct ubus_context *ctx, struct ubus_request *req, if (req->complete_cb) req->complete_cb(req, status); - if (!registered) + if (!registered) { uloop_fd_delete(&ctx->sock); + if (ctx->stack_depth) + ctx->pending_timer.cb(&ctx->pending_timer); + } + return status; }