25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix previous commit

This commit is contained in:
Evgeny Khramtsov 2019-07-30 13:40:40 +03:00
parent 59adfcb8e0
commit 81996b153a

View File

@ -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,