mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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}) ->
|
#sm_enable{resume = Resume, max = Max}) ->
|
||||||
Timeout = if Resume == false ->
|
Timeout = if Resume == false ->
|
||||||
0;
|
0;
|
||||||
Max /= undefined, Max > 0, Max =< MaxTimeout ->
|
Max /= undefined, Max > 0, Max*1000 =< MaxTimeout ->
|
||||||
Max;
|
Max*1000;
|
||||||
true ->
|
true ->
|
||||||
DefaultTimeout
|
DefaultTimeout
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user