Diff

plugins/mod_bosh.lua @ 5726:3bccc68a38e3

mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Jul 2013 23:42:54 +0100
parent 5671:d5059e73db53
child 5727:372ecf3630cf
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Mon Jul 08 21:38:08 2013 +0100
+++ b/plugins/mod_bosh.lua	Mon Jul 08 23:42:54 2013 +0100
@@ -361,7 +361,9 @@
 			stanza.attr.xmlns = nil;
 		end
 		stanza = session.filter("stanzas/in", stanza);
-		core_process_stanza(session, stanza);
+		if stanza then
+			core_process_stanza(session, stanza);
+		end
 	end
 end