X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=proto-shell.c;h=0131e190a010447672b8df96b12274c8d91d4563;hb=e7135f6114a1146af46f13b6cad03106f78e2e7f;hp=7c23caa47c7837946d70f3a0a81f746d73f56dd9;hpb=64ea160818e2dc958fa91f80a3a5a9ac40ccc3ba;p=project%2Fnetifd.git diff --git a/proto-shell.c b/proto-shell.c index 7c23caa..0131e19 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -506,9 +506,11 @@ proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data, interface_update_complete(state->proto.iface); - if (!keep) - state->proto.proto_event(&state->proto, IFPEV_UP); - state->sm = S_IDLE; + if ((state->sm != S_SETUP_ABORT) && (state->sm != S_TEARDOWN)) { + if (!keep) + state->proto.proto_event(&state->proto, IFPEV_UP); + state->sm = S_IDLE; + } return 0; }