# HG changeset patch # User tmolitor # Date 1560643212 -7200 # Node ID c2c851722a8a3e4af5ae3e1ee6302df59fd42242 # Parent fb1c8dee2ead4f2eca2a3013c772ce5992ab935c mod_smacks: fix prosody 0.9 compatibility diff -r fb1c8dee2ead -r c2c851722a8a mod_smacks/mod_smacks.lua --- 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;