From: John Crispin Date: Wed, 18 Dec 2013 12:59:16 +0000 (+0100) Subject: config.change triggers should only run if the config is valid X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bbaaa41f8c2cd5fc686403b3b189946c4d6f20ab;p=oweals%2Frpcd.git config.change triggers should only run if the config is valid Signed-off-by: John Crispin --- 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 {