Merge 0.12->trunk

This commit is contained in:
Kim Alvefur 2024-11-02 22:33:38 +01:00
commit 95dddbdea1

View file

@ -541,11 +541,13 @@ module:hook("pre-resource-unbind", function (event)
return
end
session.log("debug", "Destroying session for hibernating too long");
save_old_session(session);
session.resumption_token = nil;
sessionmanager.destroy_session(session, "Hibernating too long");
sessions_expired(1);
prosody.main_thread:run(function ()
session.log("debug", "Destroying session for hibernating too long");
save_old_session(session);
session.resumption_token = nil;
sessionmanager.destroy_session(session, "Hibernating too long");
sessions_expired(1);
end);
end);
if session.conn then
local conn = session.conn;