Changeset

625:2c07bcf56a36 0.8-diverge

mod_smacks: Don't hibernate session on graceful stream close
author Matthew Wild <mwild1@gmail.com>
date Mon, 19 Mar 2012 17:06:02 +0000
parents 624:55a9d3c2f73b
children 626:f19f723571d9
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	Sat Mar 17 15:54:25 2012 +0000
+++ b/mod_smacks/mod_smacks.lua	Mon Mar 19 17:06:02 2012 +0000
@@ -201,7 +201,7 @@
 
 module:hook("pre-resource-unbind", function (event)
 	local session, err = event.session, event.error;
-	if session.smacks then
+	if session.smacks and err ~= "session closed" then
 		if not session.resumption_token then
 			local queue = session.outgoing_stanza_queue;
 			if #queue > 0 then