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:
parent
f85488583c
commit
76d4c178a7
@ -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},
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user