Mercurial > prosody-modules
diff mod_smacks/mod_smacks.lua @ 1024:d7655e634c30
mod_smacks: Allow resumption if the TCP connection is closed from our end, c15cea87036f ensures distinction from cleanly closed streams (thanks Lance)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 29 May 2013 11:37:42 +0200 |
parents | 487cd02aada0 |
children | ddbc1eb8d431 |
line wrap: on
line diff
--- 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