summaryrefslogtreecommitdiff
path: root/ubus.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-30 15:05:00 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-05-30 15:05:00 +0200
commit18ce3a61dea1d5db4f58e767f4c78123a7bd1667 (patch)
tree1c47c8e96014c316c8c4bb12e3db8a4d9667cb70 /ubus.c
parent0e2cb17889eb981f836f50d7947e5344f9d9f103 (diff)
ubus: clear the right timeout on rpc connection teardowns
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 22901d8..c9b0ea5 100644
--- a/ubus.c
+++ b/ubus.c
@@ -215,7 +215,7 @@ static void uh_ubus_request_free(struct client *cl)
struct dispatch_ubus *du = &cl->dispatch.ubus;
blob_buf_free(&du->buf);
- uloop_timeout_cancel(&cl->timeout);
+ uloop_timeout_cancel(&du->timeout);
if (du->jsobj)
json_object_put(du->jsobj);