mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
added error handling in mod_pubsub_odbc.
This commit is contained in:
parent
e9d104ec47
commit
9ec014c184
@ -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).
|
||||||
|
Loading…
Reference in New Issue
Block a user