25
1
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:
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}) -> #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,