# HG changeset patch # User Kim Alvefur # Date 1730583218 -3600 # Node ID 0aae6de9d3237558cf8670f6b51226fb30f94023 # Parent 67288253d9a2c69eff05a25937ea336bd83e536f# Parent 01d2abc3d17c5c1f7223781688700e701b78dd66 Merge 0.12->trunk diff -r 67288253d9a2 -r 0aae6de9d323 plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Fri Nov 01 13:10:45 2024 +0100 +++ b/plugins/mod_smacks.lua Sat Nov 02 22:33:38 2024 +0100 @@ -541,11 +541,13 @@ 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;