aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2022-08-31 18:10:22 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2022-08-31 18:10:22 +0200
commit63caa369beac157fa26c31d624e599b0bff861af (patch)
tree6ad20eed98aee61e612864e9d1c174f43d54550d
parentHandle invalid values in X-Forwarded-For header more gracefuly (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