From 99cca59d6e53584e8e72e64af4b205f9802bec07 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 21 Jul 2023 17:23:00 +0200 Subject: plugins: Handle how get_option_period returns "never" --- plugins/mod_c2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_c2s.lua') 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); -- cgit v1.2.3