Mercurial > prosody-hg
comparison 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 |
| parents | d5059e73db53 |
| children | 372ecf3630cf |
comparison
equal
deleted
inserted
replaced
| 5724:a49f32e3d73b | 5726:3bccc68a38e3 |
|---|---|
| 359 if session then | 359 if session then |
| 360 if stanza.attr.xmlns == xmlns_bosh then | 360 if stanza.attr.xmlns == xmlns_bosh then |
| 361 stanza.attr.xmlns = nil; | 361 stanza.attr.xmlns = nil; |
| 362 end | 362 end |
| 363 stanza = session.filter("stanzas/in", stanza); | 363 stanza = session.filter("stanzas/in", stanza); |
| 364 core_process_stanza(session, stanza); | 364 if stanza then |
| 365 core_process_stanza(session, stanza); | |
| 366 end | |
| 365 end | 367 end |
| 366 end | 368 end |
| 367 | 369 |
| 368 function stream_callbacks.streamclosed(request) | 370 function stream_callbacks.streamclosed(request) |
| 369 local session = sessions[request.sid]; | 371 local session = sessions[request.sid]; |
