Software /
code /
prosody-modules
Comparison
mod_cloud_notify/mod_cloud_notify.lua @ 3940:675726ab06d3
mod_cloud_notify: Fix bug in prosody 0.9
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sun, 08 Mar 2020 20:00:23 +0100 |
parent | 3627:9639c493f4b9 |
child | 3943:f5e6368a1c39 |
comparison
equal
deleted
inserted
replaced
3939:a6b3b41a116c | 3940:675726ab06d3 |
---|---|
99 if stopped then return; end | 99 if stopped then return; end |
100 return callback(t); | 100 return callback(t); |
101 end); | 101 end); |
102 if timer and timer.stop then return timer; end -- new prosody api includes stop() function | 102 if timer and timer.stop then return timer; end -- new prosody api includes stop() function |
103 return { | 103 return { |
104 stop = function () stopped = true end; | 104 stop = function(self) stopped = true end; |
105 timer; | 105 timer; |
106 }; | 106 }; |
107 end | 107 end |
108 | 108 |
109 -- For keeping state across reloads while caching reads | 109 -- For keeping state across reloads while caching reads |