Changeset

1703:a53385a78a64

mod_smacks: Add stanza counting filter when resuming session
author Kim Alvefur <zash@zash.se>
date Wed, 06 May 2015 00:58:55 +0200
parents 1702:725ebd494000
children 1704:97291a4b17bd
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	Wed May 06 00:55:00 2015 +0200
+++ b/mod_smacks/mod_smacks.lua	Wed May 06 00:58:55 2015 +0200
@@ -124,8 +124,8 @@
 local function wrap_session_in(session, resume)
 	if not resume then
 		session.handled_stanza_count = 0;
-		add_filter(session, "stanzas/in", count_incoming_stanzas, 1000);
 	end
+	add_filter(session, "stanzas/in", count_incoming_stanzas, 1000);
 
 	return session;
 end