projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b66d05
)
libubus: fix synchronous ubus_notify without waiting for a timeout
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 17 Mar 2013 16:55:11 +0000
(17:55 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 17 Mar 2013 16:55:11 +0000
(17:55 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-req.c
patch
|
blob
|
history
diff --git
a/libubus-req.c
b/libubus-req.c
index ec8297938403a776190ce7ea4d54dd35430a0156..f02af8eecf39d15ccabf9161aeef232ab5a7ec5e 100644
(file)
--- a/
libubus-req.c
+++ b/
libubus-req.c
@@
-285,8
+285,10
@@
int ubus_notify(struct ubus_context *ctx, struct ubus_object *obj,
if (ret < 0)
return ret;
- if (timeout < 0)
+ if (timeout < 0) {
+ ubus_abort_request(ctx, &req.req);
return 0;
+ }
return ubus_complete_request(ctx, &req.req, timeout);
}