From 81996b153a7b071f02bc8655cb4a395d65672a58 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Tue, 30 Jul 2019 13:40:40 +0300 Subject: [PATCH] Fix previous commit --- src/mod_stream_mgmt.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,