Software /
code /
prosody
Comparison
plugins/mod_smacks.lua @ 12851:ffa75a9ce907
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 19 Jan 2023 21:14:31 +0100 |
parent | 12803:2e12290820e8 |
parent | 12850:101c758428aa |
child | 12977:74b9e05af71e |
comparison
equal
deleted
inserted
replaced
12849:330bfcaa5532 | 12851:ffa75a9ce907 |
---|---|
542 local conn = session.conn; | 542 local conn = session.conn; |
543 c2s_sessions[conn] = nil; | 543 c2s_sessions[conn] = nil; |
544 session.conn = nil; | 544 session.conn = nil; |
545 conn:close(); | 545 conn:close(); |
546 end | 546 end |
547 session.log("debug", "Session going into hibernation (not being destroyed)") | |
547 module:fire_event("smacks-hibernation-start", { origin = session; queue = session.outgoing_stanza_queue:table() }); | 548 module:fire_event("smacks-hibernation-start", { origin = session; queue = session.outgoing_stanza_queue:table() }); |
548 return true; -- Postpone destruction for now | 549 return true; -- Postpone destruction for now |
549 end); | 550 end); |
550 | 551 |
551 local function handle_s2s_destroyed(event) | 552 local function handle_s2s_destroyed(event) |