diff mod_smacks/mod_smacks.lua @ 810:464ed063a8f2

mod_smacks: Less table indexing!
author Kim Alvefur <zash@zash.se>
date Mon, 10 Sep 2012 21:02:26 +0200
parents 92c6f84ec446
children e2d940d81613
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.