diff --git a/libubus-req.c b/libubus-req.c index 2f2dce1..43a5c26 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -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) { - if (!list_empty(&req->list)) + if (list_empty(&req->list)) return; req->cancelled = true;