mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Fix previous commit
This commit is contained in:
parent
59adfcb8e0
commit
81996b153a
@ -370,8 +370,8 @@ handle_enable(#{mgmt_timeout := DefaultTimeout,
|
||||
#sm_enable{resume = Resume, max = Max}) ->
|
||||
Timeout = if Resume == false ->
|
||||
0;
|
||||
Max /= undefined, Max > 0, Max =< MaxTimeout ->
|
||||
Max;
|
||||
Max /= undefined, Max > 0, Max*1000 =< MaxTimeout ->
|
||||
Max*1000;
|
||||
true ->
|
||||
DefaultTimeout
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user