Software /
code /
prosody
Diff
plugins/mod_smacks.lua @ 12038:4e54334febc1
mod_smacks: Include reason for destroying session on hibernation timeout
To aid in debugging
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Dec 2021 18:38:40 +0100 |
parent | 11997:1ea01660c79a |
child | 12041:def20683c161 |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Sat Dec 11 20:58:09 2021 +0100 +++ b/plugins/mod_smacks.lua Sun Dec 12 18:38:40 2021 +0100 @@ -498,7 +498,7 @@ h = session.handled_stanza_count, }); session.resumption_token = nil; - sessionmanager.destroy_session(session); + sessionmanager.destroy_session(session, "Hibernating too long"); else session.log("debug", "Session resumed before hibernation timeout, all is well") end