diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-01 23:43:04 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-01 23:43:07 +0200 |
commit | 87c52f8461fa74733572f4efc53bc30a64ca8575 (patch) | |
tree | ab8b0cd80ac46f48fbd53000815e6a89105805be /relay.c | |
parent | 18ce3a61dea1d5db4f58e767f4c78123a7bd1667 (diff) |
relay: cancel the timeout on free
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'relay.c')
-rw-r--r-- | relay.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |