aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-09-05 18:00:21 +0100
committerMatthew Wild <mwild1@gmail.com>2010-09-05 18:00:21 +0100
commitac64b6c978be04211435cf89bf5c101136ceb18d (patch)
tree3bb7929dee4856bce3b99960e29020c9bff1f72f
parentfa3d0fcbba7109d98b4670aab3a6e43412bf1513 (diff)
downloadprosody-ac64b6c978be04211435cf89bf5c101136ceb18d.tar.gz
prosody-ac64b6c978be04211435cf89bf5c101136ceb18d.zip
s2smanager: Don't fire s2sin-destroyed for sessions that were never fully established (thanks Thomas)
-rw-r--r--core/s2smanager.lua2
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);