From bbaaa41f8c2cd5fc686403b3b189946c4d6f20ab Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 18 Dec 2013 13:59:16 +0100 Subject: [PATCH] config.change triggers should only run if the config is valid Signed-off-by: John Crispin --- uci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uci.c b/uci.c index af154f7..e012998 100644 --- a/uci.c +++ b/uci.c @@ -1144,8 +1144,8 @@ rpc_uci_revert_commit(struct ubus_context *ctx, struct blob_attr *msg, bool comm { uci_commit(cursor, &p, false); uci_unload(cursor, p); + rpc_uci_trigger_event(ctx, blobmsg_get_string(tb[RPC_C_CONFIG])); } - rpc_uci_trigger_event(ctx, blobmsg_get_string(tb[RPC_C_CONFIG])); } else { -- 2.25.1