mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +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:
parent
fba651822d
commit
63caa369be
@ -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…
Reference in New Issue
Block a user