Diff

mod_cloud_notify/mod_cloud_notify.lua @ 5052:d7ece68de066

mod_cloud_notify: Only delay hibernation timeout for push-enabled clients
author Matthew Wild <mwild1@gmail.com>
date Fri, 23 Sep 2022 22:39:49 +0100
parent 4996:031e0dd90f4b
child 5053:00e8cc6860cb
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Fri Sep 23 12:37:36 2022 +0100
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Fri Sep 23 22:39:49 2022 +0100
@@ -514,7 +514,7 @@
 	local session = event.origin;
 	local queue = event.queue;
 	session.first_hibernated_push = nil;
-	if session.hibernating_watchdog then		-- check for prosody 0.12 mod_smacks
+	if session.push_identifier and session.hibernating_watchdog then -- check for prosody 0.12 mod_smacks
 		-- save old watchdog callback and timeout
 		session.original_smacks_callback = session.hibernating_watchdog.callback;
 		session.original_smacks_timeout = session.hibernating_watchdog.timeout;