mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Merge 0.12->trunk
This commit is contained in:
commit
95dddbdea1
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue