Changeset

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
parents 5051:2718652c18ca
children 5053:00e8cc6860cb
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	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;