25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Use econf:timeout/2

This commit is contained in:
Evgeny Khramtsov 2019-07-16 18:02:32 +03:00
parent f85488583c
commit 76d4c178a7
2 changed files with 2 additions and 2 deletions

View File

@ -1178,7 +1178,7 @@ mod_opt_type(hosts) ->
mod_opt_type(queue_type) -> mod_opt_type(queue_type) ->
econf:queue_type(); econf:queue_type();
mod_opt_type(hibernation_timeout) -> mod_opt_type(hibernation_timeout) ->
econf:non_neg_int(infinity). econf:timeout(minute, infinity).
mod_options(Host) -> mod_options(Host) ->
[{access, all}, [{access, all},

View File

@ -4707,7 +4707,7 @@ reset_hibernate_timer(State) ->
{infinity, _} -> {infinity, _} ->
none; none;
{Timeout, 0} -> {Timeout, 0} ->
p1_fsm:send_event_after(timer:minutes(Timeout), hibernate); p1_fsm:send_event_after(Timeout, hibernate);
_ -> _ ->
none none
end, end,