interface: fix "if-down" hotplug event handling
[project/netifd.git] / interface.c
index fd7a826dc2a52e14594232307b206a7719a094c7..e0652cdb79d0fc957a11db2146242a439c51fbf7 100644 (file)
@@ -269,6 +269,7 @@ mark_interface_down(struct interface *iface)
        iface->state = IFS_DOWN;
        switch (state) {
        case IFS_UP:
+       case IFS_TEARDOWN:
                interface_event(iface, IFEV_DOWN);
                break;
        case IFS_SETUP: