mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
mod_push: Fix API call return type on error
A call that yields a 'rescode' isn't supposed to return an error tuple.
This commit is contained in:
parent
37c75f556d
commit
f40c5c304d
@ -243,9 +243,9 @@ delete_old_sessions(Days) ->
|
||||
[] ->
|
||||
?INFO_MSG("Deleted push sessions older than ~B days", [Days]),
|
||||
ok;
|
||||
[NotOk | _] ->
|
||||
[{error, Reason} | _] ->
|
||||
?ERROR_MSG("Error while deleting old push sessions: ~p", [NotOk]),
|
||||
NotOk
|
||||
Reason
|
||||
end.
|
||||
|
||||
%%--------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user