aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-03-29 13:01:53 +0100
committerMatthew Wild <mwild1@gmail.com>2023-03-29 13:01:53 +0100
commit89bf5049a1290fe0dcc0099caca08fe0ab340cae (patch)
treeb00eae005ea52fef6b5c863b4a5b6ee06efedcc7 /core
parent75bf9e6eff64fb15f8aea3d423751b5600ba9ca8 (diff)
downloadprosody-89bf5049a1290fe0dcc0099caca08fe0ab340cae.tar.gz
prosody-89bf5049a1290fe0dcc0099caca08fe0ab340cae.zip
sessionmanager: Preserve 'since' property of original session after resumption
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 50a78721..ab06e6c0 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -104,6 +104,7 @@ local function update_session(to_session, from_session)
replaced_conn:close();
end
+ to_session.since = from_session.since;
to_session.ip = from_session.ip;
to_session.conn = from_session.conn;
to_session.rawsend = from_session.rawsend;