Changeset

2122:3f788f18cc10

mod_smacks: Adjust filter priorities to avoid conflict with mod_websocket
author Kim Alvefur <zash@zash.se>
date Thu, 17 Mar 2016 22:42:11 +0100
parents 2121:4916c1b6517f
children 2123:d843e8f1ed78
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Thu Mar 17 18:13:28 2016 +0100
+++ b/mod_smacks/mod_smacks.lua	Thu Mar 17 22:42:11 2016 +0100
@@ -115,7 +115,7 @@
 		session.last_acknowledged_stanza = 0;
 	end
 
-	add_filter(session, "stanzas/out", outgoing_stanza_filter, -1000);
+	add_filter(session, "stanzas/out", outgoing_stanza_filter, -999);
 
 	local session_close = session.close;
 	function session.close(...)
@@ -132,7 +132,7 @@
 	if not resume then
 		session.handled_stanza_count = 0;
 	end
-	add_filter(session, "stanzas/in", count_incoming_stanzas, 1000);
+	add_filter(session, "stanzas/in", count_incoming_stanzas, 999);
 
 	return session;
 end