mod_smacks/mod_smacks.lua
changeset 1024 d7655e634c30
parent 994 487cd02aada0
child 1293 ddbc1eb8d431
--- 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