Comparison

mod_cloud_notify/mod_cloud_notify.lua @ 4980:da151f9af861

replaced 'session' with 'origin' in push_disable session is not defined in this function, trying to access it leads to an error. The correct reference seems to be 'origin'. (This may have come about by copying from the similar code in process_stanza_queue.)
author arcseconds
date Sat, 30 Jul 2022 21:07:47 +1200
parent 4968:487f1eb829cf
child 4996:031e0dd90f4b
comparison
equal deleted inserted replaced
4979:8f77452abc59 4980:da151f9af861
237 if origin.push_identifier == key then 237 if origin.push_identifier == key then
238 origin.push_identifier = nil; 238 origin.push_identifier = nil;
239 origin.push_settings = nil; 239 origin.push_settings = nil;
240 origin.first_hibernated_push = nil; 240 origin.first_hibernated_push = nil;
241 -- check for prosody 0.12 mod_smacks 241 -- check for prosody 0.12 mod_smacks
242 if session.hibernating_watchdog and session.original_smacks_callback and session.original_smacks_timeout then 242 if origin.hibernating_watchdog and origin.original_smacks_callback and origin.original_smacks_timeout then
243 -- restore old smacks watchdog 243 -- restore old smacks watchdog
244 session.hibernating_watchdog:cancel(); 244 origin.hibernating_watchdog:cancel();
245 session.hibernating_watchdog = watchdog.new(session.original_smacks_timeout, session.original_smacks_callback); 245 origin.hibernating_watchdog = watchdog.new(origin.original_smacks_timeout, origin.original_smacks_callback);
246 end 246 end
247 end 247 end
248 user_push_services[key] = nil; 248 user_push_services[key] = nil;
249 push_errors[key] = nil; 249 push_errors[key] = nil;
250 for stanza_id, identifier in pairs(id2identifier) do 250 for stanza_id, identifier in pairs(id2identifier) do