diff options
author | badlop <badlop@ono.com> | 2014-04-23 17:06:46 +0200 |
---|---|---|
committer | badlop <badlop@ono.com> | 2014-04-23 17:06:46 +0200 |
commit | 3a3f8240c119b13bd9adf71ab176e93bbff2288a (patch) | |
tree | 7a1e1d9e77f1840a8ccb24c9bc482c72b9c6c2cd | |
parent | Merge pull request #174 from weiss/fix-s2s-in-auth (diff) | |
parent | added error handling in mod_pubsub_odbc. (diff) |
Merge pull request #176 from hamano/devel
added error handling in mod_pubsub_odbc.
-rw-r--r-- | src/mod_pubsub_odbc.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mod_pubsub_odbc.erl b/src/mod_pubsub_odbc.erl index 3d26ad0fa..00e619213 100644 --- a/src/mod_pubsub_odbc.erl +++ b/src/mod_pubsub_odbc.erl @@ -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). |