From b2dcb02570939d98b92c7c55db1c328693a5d52a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Aug 2014 15:06:42 +0200 Subject: [PATCH] interface: call proto teardown before marking the interface as down Signed-off-by: Felix Fietkau --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index bebc30b..35f20b0 100644 --- a/interface.c +++ b/interface.c @@ -272,8 +272,8 @@ interface_check_state(struct interface *iface) switch (iface->state) { case IFS_UP: if (!iface->enabled || !link_state) { - mark_interface_down(iface); interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, false); + mark_interface_down(iface); } break; case IFS_DOWN: -- 2.11.0