# HG changeset patch # User tmolitor # Date 1491438906 -7200 # Node ID 75ab061069aa0a0b364db67d264082e3259d100c # Parent 80b6c63cb55912628453f2e570908c5a9826dba4 mod_pinger: Don't ping when smacks hibernated the session, fixes #712 diff -r 80b6c63cb559 -r 75ab061069aa mod_pinger/mod_pinger.lua --- a/mod_pinger/mod_pinger.lua Thu Apr 06 02:31:16 2017 +0200 +++ b/mod_pinger/mod_pinger.lua Thu Apr 06 02:35:06 2017 +0200 @@ -48,3 +48,7 @@ module:hook("resource-bind", function (event) watch_session(event.session); end); module:hook("resource-unbind", function (event) unwatch_session(event.session); end); + +-- handle smacks sessions properly (not pinging in hibernated state) +module:hook("smacks-hibernation-start", function (event) unwatch_session(event.origin); end); +module:hook("smacks-hibernation-end", function (event) watch_session(event.origin); end);