From 257efddd1b9764a4e9abce9bdf94e2dffc33db5a Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 12 May 2009 20:57:38 +0000 Subject: [PATCH] Fix bad transaction returncode in unsubscribe presence handler SVN Revision: 2073 --- ChangeLog | 5 +++++ src/mod_pubsub/mod_pubsub.erl | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cb67ce5a2..00e57e415 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-12 Christophe Romain + + * src/mod_pubsub/mod_pubsub.erl: Fix bad transaction returncode in + unsubscribe presence handler + 2009-05-11 Christophe Romain * src/mod_caps.erl: Prevent race condition when calling get_caps while diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index fa021cc77..df009d8da 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -728,10 +728,10 @@ handle_cast({unsubscribe, Subscriber, Owner}, State) -> true -> node_call(Type, unsubscribe_node, [NodeId, Subscriber, JID, all]); false -> - ok + {result, ok} end; _ -> - ok + {result, ok} end end, transaction(Host, Node, Action, sync_dirty);