libubus: fix logic inversion for cancelling requests
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
9f52d1769b
commit
f72dca720b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue