libubus: fix processing queued messages after blocking requests
authorFelix Fietkau <nbd@openwrt.org>
Thu, 22 Jan 2015 12:30:20 +0000 (13:30 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 22 Jan 2015 12:30:20 +0000 (13:30 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-req.c

index d44db51f315922362e62f02931cc88f4e08af3cb..2197f2a9fdd997183a3f641653be5e071d5af478 100644 (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);
        }