summaryrefslogtreecommitdiff
path: root/src/mod_stream_mgmt.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-07-30 13:40:40 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-07-30 13:40:40 +0300
commit81996b153a7b071f02bc8655cb4a395d65672a58 (patch)
tree6e94744e8a71b92f801df4224d55f36dd8bab830 /src/mod_stream_mgmt.erl
parentCorrectly report resume timeout (diff)
Fix previous commit
Diffstat (limited to 'src/mod_stream_mgmt.erl')
-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 e086b29c..45c30e16 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,