libubus: fix processing queued messages after blocking requests

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2015-01-22 13:30:20 +01:00
parent 7b79b6226e
commit 2d660c519d

View file

@ -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);
}