From 38dcae1fc86448384cd23a982492dba2e3641d85 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Sat, 10 Jan 2009 13:38:10 +0000 Subject: fix unsubscription of full jid subscribed node (EJAB-839) SVN Revision: 1794 --- src/mod_pubsub/node_default.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/mod_pubsub/node_default.erl b/src/mod_pubsub/node_default.erl index ae4717ce..9583b34a 100644 --- a/src/mod_pubsub/node_default.erl +++ b/src/mod_pubsub/node_default.erl @@ -372,11 +372,10 @@ unsubscribe_node(Host, Node, Sender, Subscriber, _SubId) -> (not Authorized) and (Affiliation =/= owner) -> {error, ?ERR_FORBIDDEN}; %% Was just subscriber, remove the record - Affiliation == none -> + SubState#pubsub_state.affiliation == none -> del_state(SubState#pubsub_state.stateid), {result, default}; true -> - %% TODO, may require better clean set_state(SubState#pubsub_state{subscription = none}), {result, default} end. -- cgit v1.2.3