diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-14 03:04:04 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-14 03:04:04 +0000 |
commit | 6550edee36ee362d2373d8c98e0b40d4635e1f14 (patch) | |
tree | f20ffd10c37bdae9d76177e03e00b0e4f3493048 /net | |
parent | 4481ea54a304192f483ad704ba75ffd4398ec541 (diff) | |
download | prosody-6550edee36ee362d2373d8c98e0b40d4635e1f14.tar.gz prosody-6550edee36ee362d2373d8c98e0b40d4635e1f14.zip |
net.xmppcomponent_listener: Don't handle stream errors from component sessions that have already been destroyed
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppcomponent_listener.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua index 2483d48a..056eb0a2 100644 --- a/net/xmppcomponent_listener.lua +++ b/net/xmppcomponent_listener.lua @@ -37,6 +37,7 @@ local stream_callbacks = { default_ns = xmlns_component }; local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams"; function stream_callbacks.error(session, error, data, data2) + if session.destroyed then return; end log("warn", "Error processing component stream: "..tostring(error)); if error == "no-stream" then session:close("invalid-namespace"); |