diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-23 22:07:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-23 22:07:03 +0200 |
commit | 19ab568942e2699a414bd7bf3d53823c9b707abb (patch) | |
tree | 95243973d246028df168740827266747ec2ba8ee | |
parent | 7db45fcc1faa7c62541b762aa7ba2e99b1bc6342 (diff) |
reset iface->config_state when handling it
-rw-r--r-- | interface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/interface.c b/interface.c index 6cad26b..8f5fa98 100644 --- a/interface.c +++ b/interface.c @@ -306,7 +306,10 @@ interface_do_reload(struct interface *iface) static void interface_handle_config_change(struct interface *iface) { - switch(iface->config_state) { + enum interface_config_state state = iface->config_state; + + iface->config_state = IFC_NORMAL; + switch(state) { case IFC_NORMAL: break; case IFC_RELOAD: |