unetmsg: return the request data when issuing async requests

Makes it possible to track and cancel requests

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-05-16 11:15:27 +02:00
parent 08179b367b
commit a242cfb4e1

View file

@ -76,7 +76,9 @@ function request(name, type, data, data_cb, complete_cb)
cb: complete_cb
});
if (!complete_cb)
if (complete_cb)
return req;
req.await();
}