author | Georg Lukas <georg@op-co.de> |
Wed, 13 Jun 2018 08:16:45 +0200 | |
changeset 3117 | 8298b06e6603 |
parent 3116 | ed948c75e53e |
child 3118 | 73ada978dabc |
--- a/mod_pinger/mod_pinger.lua Sat Jun 09 21:19:54 2018 +0200 +++ b/mod_pinger/mod_pinger.lua Wed Jun 13 08:16:45 2018 +0200 @@ -6,8 +6,10 @@ local ping_timeout = module:get_option_number("c2s_ping_timeout", 30); function update_watchdog(data, session) - session.idle_watchdog:reset(); - session.idle_pinged = nil; + if session.idle_watchdog then + session.idle_watchdog:reset(); + session.idle_pinged = nil; + end return data; end