changeset 3622:21f870e1ba55

mod_cloud_notify: fix prosody 0.9 compatibility
author tmolitor <thilo@eightysoft.de>
date Sun, 16 Jun 2019 02:00:34 +0200
parents c2c851722a8a
children da2d58208574
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;