diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-30 00:50:47 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-30 01:22:03 +0100 |
commit | 5eb4f53ce6f1502e16114b51e50ab85ecbc8eb99 (patch) | |
tree | be2716e6be465e69ed7a059fd0307bc67be70a10 | |
parent | e4784c718099ce2e5c20410457e3c60d1eee8ed2 (diff) |
proto-shell: ensure that the teardown timeout gets killed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | proto-shell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto-shell.c b/proto-shell.c index 2a5eda0..038fb0b 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -317,6 +317,7 @@ proto_shell_free(struct interface_proto_state *proto) struct proto_shell_state *state; state = container_of(proto, struct proto_shell_state, proto); + uloop_timeout_cancel(&state->teardown_timeout); proto_shell_clear_host_dep(state); netifd_kill_process(&state->script_task); netifd_kill_process(&state->proto_task); |