Mercurial > prosody-modules
changeset 3621:c2c851722a8a
mod_smacks: fix prosody 0.9 compatibility
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sun, 16 Jun 2019 02:00:12 +0200 (2019-06-16) |
parents | fb1c8dee2ead |
children | 21f870e1ba55 |
files | mod_smacks/mod_smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua Sat Jun 15 01:34:52 2019 +0200 +++ b/mod_smacks/mod_smacks.lua Sun Jun 16 02:00:12 2019 +0200 @@ -108,7 +108,7 @@ if stopped then return; end return callback(t); end); - if timer.stop then return timer; end -- new prosody api includes stop() function + if timer and timer.stop then return timer; end -- new prosody api includes stop() function return { stop = function () stopped = true end; timer;