Changeset

810:464ed063a8f2

mod_smacks: Less table indexing!
author Kim Alvefur <zash@zash.se>
date Mon, 10 Sep 2012 21:02:26 +0200
parents 809:1d51c5e38faa
children 811:e2d940d81613
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Sun Sep 02 15:35:50 2012 +0200
+++ b/mod_smacks/mod_smacks.lua	Mon Sep 10 21:02:26 2012 +0200
@@ -224,7 +224,7 @@
 				-- matches the smacks session this timer is for in case it changed
 				-- (for example, the client may have bound a new resource and
 				-- started a new smacks session, or not be using smacks)
-				local curr_session = hosts[session.host].sessions[session.username].sessions[session.resource];
+				local curr_session = full_sessions[session.full_jid];
 				if curr_session.resumption_token == resumption_token
 				-- Check the hibernate time still matches what we think it is,
 				-- otherwise the session resumed and re-hibernated.