Changeset

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 1023:83f56d3a07f5
children 1025:b56a9aa171b3
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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