diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-09-05 18:00:21 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-09-05 18:00:21 +0100 |
commit | ac64b6c978be04211435cf89bf5c101136ceb18d (patch) | |
tree | 3bb7929dee4856bce3b99960e29020c9bff1f72f /core | |
parent | fa3d0fcbba7109d98b4670aab3a6e43412bf1513 (diff) | |
download | prosody-ac64b6c978be04211435cf89bf5c101136ceb18d.tar.gz prosody-ac64b6c978be04211435cf89bf5c101136ceb18d.zip |
s2smanager: Don't fire s2sin-destroyed for sessions that were never fully established (thanks Thomas)
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 8705633d..0ad8f83b 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -582,7 +582,7 @@ function destroy_session(session, reason) if hosts[session.from_host] then hosts[session.from_host].events.fire_event("s2sout-destroyed", event_data); end - else + elseif session.type == "s2sin" then prosody.events.fire_event("s2sin-destroyed", event_data); if hosts[session.to_host] then hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data); |