ubus: clear the right timeout on rpc connection teardowns
authorFelix Fietkau <nbd@openwrt.org>
Thu, 30 May 2013 13:05:00 +0000 (15:05 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 30 May 2013 13:05:00 +0000 (15:05 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubus.c

diff --git a/ubus.c b/ubus.c
index 22901d8c589b737f7a320c5b62f2aaca37462a27..c9b0ea5665191616d445ae8dcd05f2f357a06230 100644 (file)
--- 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);