Comparison

plugins/mod_smacks.lua @ 12800:06ba2f8cee47

mod_smacks: Only track resumable sessions Required due to track_session() having moved here
author Kim Alvefur <zash@zash.se>
date Fri, 18 Nov 2022 16:18:47 +0100
parent 12745:2cbf0e9314ff
child 12802:4a8740e01813
comparison
equal deleted inserted replaced
12795:87424cbedc55 12800:06ba2f8cee47
336 session = session; 336 session = session;
337 finish = function () 337 finish = function ()
338 session.log("debug", "Enabling stream management"); 338 session.log("debug", "Enabling stream management");
339 339
340 session.smacks = stanza.attr.xmlns; 340 session.smacks = stanza.attr.xmlns;
341 track_session(session, resume_token); 341 if resume_token then
342 track_session(session, resume_token);
343 end
342 wrap_session(session, false); 344 wrap_session(session, false);
343 end; 345 end;
344 }; 346 };
345 end 347 end
346 348