24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-26 22:35:31 +02:00

added error handling in mod_pubsub_odbc.

This commit is contained in:
HAMANO Tsukasa 2014-04-23 23:35:34 +09:00
parent e9d104ec47
commit 9ec014c184

View File

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