libubus: fix logic inversion for cancelling requests

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-05-30 12:39:51 +02:00
parent 9f52d1769b
commit f72dca720b

View file

@ -66,7 +66,7 @@ int __hidden ubus_start_request(struct ubus_context *ctx, struct ubus_request *r
void ubus_abort_request(struct ubus_context *ctx, struct ubus_request *req) void ubus_abort_request(struct ubus_context *ctx, struct ubus_request *req)
{ {
if (!list_empty(&req->list)) if (list_empty(&req->list))
return; return;
req->cancelled = true; req->cancelled = true;