# HG changeset patch # User Georg Lukas # Date 1528870605 -7200 # Node ID 8298b06e6603c9d9a35d85b409c36fe640f1213b # Parent ed948c75e53e37cfe4dcf9d82c7e7a6fc2a9af15 mod_pinger: work around updates on stale sessions diff -r ed948c75e53e -r 8298b06e6603 mod_pinger/mod_pinger.lua --- 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