Comparison

mod_smacks/mod_smacks.lua @ 1598:043d08448d87

mod_smacks: Remove negation of condition, most likely a leftover from debugging
author Kim Alvefur <zash@zash.se>
date Mon, 26 Jan 2015 15:44:36 +0100
parent 1597:dc0cf2ba0e1a
child 1599:8e006226e4c5
comparison
equal deleted inserted replaced
1597:dc0cf2ba0e1a 1598:043d08448d87
264 -- We need to check the current resumption token for this resource 264 -- We need to check the current resumption token for this resource
265 -- matches the smacks session this timer is for in case it changed 265 -- matches the smacks session this timer is for in case it changed
266 -- (for example, the client may have bound a new resource and 266 -- (for example, the client may have bound a new resource and
267 -- started a new smacks session, or not be using smacks) 267 -- started a new smacks session, or not be using smacks)
268 local curr_session = full_sessions[session.full_jid]; 268 local curr_session = full_sessions[session.full_jid];
269 if false and session.destroyed then 269 if session.destroyed then
270 session.log("debug", "The session has already been destroyed"); 270 session.log("debug", "The session has already been destroyed");
271 elseif curr_session and curr_session.resumption_token == resumption_token 271 elseif curr_session and curr_session.resumption_token == resumption_token
272 -- Check the hibernate time still matches what we think it is, 272 -- Check the hibernate time still matches what we think it is,
273 -- otherwise the session resumed and re-hibernated. 273 -- otherwise the session resumed and re-hibernated.
274 and session.hibernating == hibernate_time then 274 and session.hibernating == hibernate_time then