# HG changeset patch # User tmolitor # Date 1560643234 -7200 # Node ID 21f870e1ba55f4c2db1c3abee6e8402c5c4d8cad # Parent c2c851722a8a3e4af5ae3e1ee6302df59fd42242 mod_cloud_notify: fix prosody 0.9 compatibility diff -r c2c851722a8a -r 21f870e1ba55 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Sun Jun 16 02:00:12 2019 +0200 +++ b/mod_cloud_notify/mod_cloud_notify.lua Sun Jun 16 02:00:34 2019 +0200 @@ -99,7 +99,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;