Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2022-08-31 19:10:22 +0300
committerHolger Weiss <holger@zedat.fu-berlin.de>2022-08-31 19:10:22 +0300
commit63caa369beac157fa26c31d624e599b0bff861af (patch)
tree6ad20eed98aee61e612864e9d1c174f43d54550d
parentfba651822dc9a718642018ba0616aefad540403a (diff)
mod_pubsub: Don't crash on command failures
Handle 'delete_old_items' and 'delete_expired_items' errors gracefully.
-rw-r--r--src/mod_pubsub.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 2eff16bfe..7b01c4af0 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -4197,7 +4197,7 @@ delete_old_items(N) ->
end
end, Nodes);
_ ->
- error
+ [error]
end
end, ejabberd_option:hosts()),
case lists:member(error, Results) of
@@ -4235,7 +4235,7 @@ delete_expired_items() ->
end
end, Nodes);
_ ->
- error
+ [error]
end
end, ejabberd_option:hosts()),
case lists:member(error, Results) of