X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus-req.c;h=2197f2a9fdd997183a3f641653be5e071d5af478;hp=d44db51f315922362e62f02931cc88f4e08af3cb;hb=e59b44573423ad608d0752b46a6073222db9ed45;hpb=e52db46c9c5d8eabe5abaccf28468c6e0b99be95 diff --git a/libubus-req.c b/libubus-req.c index d44db51..2197f2a 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -175,7 +175,7 @@ int ubus_complete_request(struct ubus_context *ctx, struct ubus_request *req, if (!registered) { uloop_fd_delete(&ctx->sock); - if (ctx->stack_depth) + if (!ctx->stack_depth) ctx->pending_timer.cb(&ctx->pending_timer); }