# HG changeset patch # User Kim Alvefur # Date 1369820262 -7200 # Node ID d7655e634c306980c47a78359fb41987e5be2b2c # Parent 83f56d3a07f5c24a4578a76c9bc4a61ff982556c mod_smacks: Allow resumption if the TCP connection is closed from our end, c15cea87036f ensures distinction from cleanly closed streams (thanks Lance) diff -r 83f56d3a07f5 -r d7655e634c30 mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Mon May 27 16:55:04 2013 +0200 +++ b/mod_smacks/mod_smacks.lua Wed May 29 11:37:42 2013 +0200 @@ -217,7 +217,7 @@ module:hook("pre-resource-unbind", function (event) local session, err = event.session, event.error; - if session.smacks and err then + if session.smacks then if not session.resumption_token then local queue = session.outgoing_stanza_queue; if #queue > 0 then