# HG changeset patch # User Kim Alvefur # Date 1572613690 -3600 # Node ID 427879b46061c4e59077eb35810ddf292876b2a8 # Parent bdbbf11eac0c48e42b4b9ef8a9bf66e7d0ab7a6e mod_s2s_keepalive: Remove support for obsolete Prosody 0.8 diff -r bdbbf11eac0c -r 427879b46061 mod_s2s_keepalive/README.markdown --- a/mod_s2s_keepalive/README.markdown Sun Oct 20 19:49:03 2019 +0200 +++ b/mod_s2s_keepalive/README.markdown Fri Nov 01 14:08:10 2019 +0100 @@ -33,5 +33,4 @@ ------- ----------------------- 0.10 Works 0.9 Works - 0.8 Works ------- ----------------------- diff -r bdbbf11eac0c -r 427879b46061 mod_s2s_keepalive/mod_s2s_keepalive.lua --- a/mod_s2s_keepalive/mod_s2s_keepalive.lua Sun Oct 20 19:49:03 2019 +0200 +++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua Fri Nov 01 14:08:10 2019 +0100 @@ -26,17 +26,4 @@ return keepalive_interval; end -if module.add_timer then -- 0.9 - module:add_timer(keepalive_interval, send_pings); -else -- 0.8 - local timer = require "util.timer"; - local unloaded; - timer.add_task(keepalive_interval, function() - if not unloaded then - return send_pings() - end - end); - function module.unload() - unloaded = true - end -end +module:add_timer(keepalive_interval, send_pings);