mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-29 00:21:03 +01:00
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:
parent
08179b367b
commit
a242cfb4e1
@ -76,8 +76,10 @@ function request(name, type, data, data_cb, complete_cb)
|
||||
cb: complete_cb
|
||||
});
|
||||
|
||||
if (!complete_cb)
|
||||
req.await();
|
||||
if (complete_cb)
|
||||
return req;
|
||||
|
||||
req.await();
|
||||
}
|
||||
|
||||
function connect()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user