Mercurial > prosody-hg
diff plugins/mod_c2s.lua @ 13230:26c30844cac6
plugins: Handle how get_option_period returns "never"
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 21 Jul 2023 17:23:00 +0200 |
| parents | 50324f66ca2a |
| children | cf8a6710c91c |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Tue Jul 18 12:38:16 2023 +0200 +++ b/plugins/mod_c2s.lua Fri Jul 21 17:23:00 2023 +0200 @@ -367,7 +367,7 @@ 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);
