mod_cloud_notify/mod_cloud_notify.lua
changeset 3626 21f870e1ba55
parent 3623 74aa35aeb08a
child 3630 c84bbf36c878
--- 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;