mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
mod_pubsub: Don't crash on command failures
Handle 'delete_old_items' and 'delete_expired_items' errors gracefully.
This commit is contained in:
parent
fba651822d
commit
63caa369be
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue