aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-07-08 23:42:54 +0100
committerMatthew Wild <mwild1@gmail.com>2013-07-08 23:42:54 +0100
commit7958568c68863fed586e1f07f0824313fa080ac6 (patch)
tree59259a015ac2cc2378f78a33730431479bbc1ba8 /plugins/mod_bosh.lua
parent21efc06e78a4804efa28822aba58b65af1d22279 (diff)
downloadprosody-7958568c68863fed586e1f07f0824313fa080ac6.tar.gz
prosody-7958568c68863fed586e1f07f0824313fa080ac6.zip
mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index b88cd969..e9506a83 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -361,7 +361,9 @@ function stream_callbacks.handlestanza(context, stanza)
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