From 7ad525b542b0c327687254a962af918fab51b8fb Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Mon, 18 Sep 2017 12:48:20 +0200 Subject: PubSub: broadcast updated configuration (#1945) --- src/mod_pubsub.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mod_pubsub.erl') diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 9ed5e65b..668dc9bf 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -3199,8 +3199,8 @@ set_configure(Host, Node, From, Config, Lang) -> case tree_call(Host, set_node, [N#pubsub_node{options = NewOpts}]) of - {result, Nidx} -> {result, ok}; - ok -> {result, ok}; + {result, Nidx} -> {result, NewOpts}; + ok -> {result, NewOpts}; Err -> Err end; _ -> @@ -3209,10 +3209,9 @@ set_configure(Host, Node, From, Config, Lang) -> end end, case transaction(Host, Node, Action, transaction) of - {result, {TNode, ok}} -> + {result, {TNode, Options}} -> Nidx = TNode#pubsub_node.id, Type = TNode#pubsub_node.type, - Options = TNode#pubsub_node.options, broadcast_config_notification(Host, Node, Nidx, Type, Options, Lang), {result, undefined}; Other -> -- cgit v1.2.3