25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_pubsub: Don't crash on command failures

Handle 'delete_old_items' and 'delete_expired_items' errors gracefully.
This commit is contained in:
Holger Weiss 2022-08-31 18:10:22 +02:00
parent fba651822d
commit 63caa369be

View File

@ -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