From: Evgeny Khramtsov Date: Tue, 30 Jul 2019 10:40:40 +0000 (+0300) Subject: Fix previous commit X-Git-Tag: 19.08~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81996b153a7b071f02bc8655cb4a395d65672a58;p=ejabberd Fix previous commit --- diff --git a/src/mod_stream_mgmt.erl b/src/mod_stream_mgmt.erl index e086b29cc..45c30e161 100644 --- a/src/mod_stream_mgmt.erl +++ b/src/mod_stream_mgmt.erl @@ -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,