# HG changeset patch # User Kim Alvefur # Date 1347303746 -7200 # Node ID 464ed063a8f258f9de330329bc937c420507fc60 # Parent 1d51c5e38faa8ee3ab233a850c86b16d40878237 mod_smacks: Less table indexing! diff -r 1d51c5e38faa -r 464ed063a8f2 mod_smacks/mod_smacks.lua --- 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.