]> granicus.if.org Git - ejabberd/commitdiff
Fix bad transaction returncode in unsubscribe presence handler
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 12 May 2009 20:57:38 +0000 (20:57 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 12 May 2009 20:57:38 +0000 (20:57 +0000)
SVN Revision: 2073

ChangeLog
src/mod_pubsub/mod_pubsub.erl

index cb67ce5a2aac6c08e89a98bdd7e59af73b1123b2..00e57e4157cac995c779e492b4cc4f1dc2e748c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-12  Christophe Romain <christophe.romain@process-one.net>
+
+       * src/mod_pubsub/mod_pubsub.erl: Fix bad transaction returncode in
+       unsubscribe presence handler
+
 2009-05-11  Christophe Romain <christophe.romain@process-one.net>
 
        * src/mod_caps.erl: Prevent race condition when calling get_caps while
index fa021cc77ebebfc1803a7739c307a5c21c810ce3..df009d8da5fc1847600a8bda03bf2c2994520c03 100644 (file)
@@ -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);