aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_stream_mgmt.erl4
1 files 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,