From 18ce3a61dea1d5db4f58e767f4c78123a7bd1667 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 30 May 2013 15:05:00 +0200 Subject: [PATCH] ubus: clear the right timeout on rpc connection teardowns Signed-off-by: Felix Fietkau --- ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2