aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-21 17:23:00 +0200
committerKim Alvefur <zash@zash.se>2023-07-21 17:23:00 +0200
commit99cca59d6e53584e8e72e64af4b205f9802bec07 (patch)
tree9a73bfe95f60446e0d270ee95273070521d0de12 /plugins/mod_c2s.lua
parent91d95d4c334ed24c4a1aaa8308c89b0b7359f99b (diff)
downloadprosody-99cca59d6e53584e8e72e64af4b205f9802bec07.tar.gz
prosody-99cca59d6e53584e8e72e64af4b205f9802bec07.zip
plugins: Handle how get_option_period returns "never"
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 0a4e5794..b80485f5 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -367,7 +367,7 @@ function listener.onconnect(conn)
end
end
- if c2s_timeout then
+ if c2s_timeout < math.huge then
add_task(c2s_timeout, function ()
if session.type == "c2s_unauthed" then
(session.log or log)("debug", "Connection still not authenticated after c2s_timeout=%gs, closing it", c2s_timeout);