mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Use econf:timeout/2
This commit is contained in:
parent
f85488583c
commit
76d4c178a7
@ -1178,7 +1178,7 @@ mod_opt_type(hosts) ->
|
||||
mod_opt_type(queue_type) ->
|
||||
econf:queue_type();
|
||||
mod_opt_type(hibernation_timeout) ->
|
||||
econf:non_neg_int(infinity).
|
||||
econf:timeout(minute, infinity).
|
||||
|
||||
mod_options(Host) ->
|
||||
[{access, all},
|
||||
|
@ -4707,7 +4707,7 @@ reset_hibernate_timer(State) ->
|
||||
{infinity, _} ->
|
||||
none;
|
||||
{Timeout, 0} ->
|
||||
p1_fsm:send_event_after(timer:minutes(Timeout), hibernate);
|
||||
p1_fsm:send_event_after(Timeout, hibernate);
|
||||
_ ->
|
||||
none
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user