Software /
code /
prosody-modules
Diff
mod_cloud_notify/mod_cloud_notify.lua @ 3622:21f870e1ba55
mod_cloud_notify: fix prosody 0.9 compatibility
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sun, 16 Jun 2019 02:00:34 +0200 |
parent | 3619:74aa35aeb08a |
child | 3626:c84bbf36c878 |
line wrap: on
line diff
--- 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;