25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge pull request #176 from hamano/devel

added error handling in mod_pubsub_odbc.
This commit is contained in:
badlop 2014-04-23 17:06:46 +02:00
commit 3a3f8240c1

View File

@ -885,10 +885,10 @@ unsubscribe_user(Entity, Owner) ->
Host = host(element(2, BJID)),
spawn(fun () ->
lists:foreach(fun (PType) ->
{result, Subscriptions} =
node_action(Host, PType,
case node_action(Host, PType,
get_entity_subscriptions,
[Host, Entity]),
[Host, Entity]) of
{result, Subscriptions} ->
lists:foreach(fun ({#pubsub_node{options
=
Options,
@ -922,7 +922,10 @@ unsubscribe_user(Entity, Owner) ->
end;
(_) -> ok
end,
Subscriptions)
Subscriptions);
Error ->
?DEBUG("Error at node_action: ~p", [Error])
end
end,
plugins(Host))
end).