Comparison

mod_smacks/mod_smacks.lua @ 1637:ad6694f7b13c

mod_smacks: Don't restore filters from original session after resumption, use new filters
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Mar 2015 10:12:23 +0000
parent 1599:8e006226e4c5
child 1670:5f5ff061b316
comparison
equal deleted inserted replaced
1626:aed20f9e78c8 1637:ad6694f7b13c
313 conn:close(); 313 conn:close();
314 end 314 end
315 original_session.ip = session.ip; 315 original_session.ip = session.ip;
316 original_session.conn = session.conn; 316 original_session.conn = session.conn;
317 original_session.send = session.send; 317 original_session.send = session.send;
318 original_session.send.filter = original_session.filter; 318 original_session.filter = session.filter;
319 original_session.send.filter = session.filter;
320 original_session.data.filter = session.filter;
319 original_session.stream = session.stream; 321 original_session.stream = session.stream;
320 original_session.secure = session.secure; 322 original_session.secure = session.secure;
321 original_session.hibernating = nil; 323 original_session.hibernating = nil;
322 wrap_session(original_session, true); 324 wrap_session(original_session, true);
323 -- Inform xmppstream of the new session (passed to its callbacks) 325 -- Inform xmppstream of the new session (passed to its callbacks)