Mercurial > prosody-modules
changeset 3723:427879b46061
mod_s2s_keepalive: Remove support for obsolete Prosody 0.8
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Nov 2019 14:08:10 +0100 |
parents | bdbbf11eac0c |
children | 1c3c7d73c5a6 |
files | mod_s2s_keepalive/README.markdown mod_s2s_keepalive/mod_s2s_keepalive.lua |
diffstat | 2 files changed, 1 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- 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 ------- -----------------------
--- 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);