From 87c52f8461fa74733572f4efc53bc30a64ca8575 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 1 Jun 2013 23:43:04 +0200 Subject: [PATCH] relay: cancel the timeout on free Signed-off-by: Felix Fietkau --- relay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/relay.c b/relay.c index 0540bd8..6195349 100644 --- a/relay.c +++ b/relay.c @@ -28,6 +28,7 @@ void uh_relay_free(struct relay *r) if (r->proc.pending) kill(r->proc.pid, SIGKILL); + uloop_timeout_cancel(&r->timeout); uloop_process_delete(&r->proc); ustream_free(&r->sfd.stream); close(r->sfd.fd.fd); -- 2.25.1