Diff

core/s2smanager.lua @ 3489:1b76d18e8045

s2smanager: Don't fire s2sin-destroyed for sessions that were never fully established (thanks Thomas)
author Matthew Wild <mwild1@gmail.com>
date Sun, 05 Sep 2010 18:00:21 +0100
parent 3488:4f3fc5f9d944
child 3540:bc139431830b
line wrap: on
line diff
--- a/core/s2smanager.lua	Sun Sep 05 12:13:49 2010 +0100
+++ b/core/s2smanager.lua	Sun Sep 05 18:00:21 2010 +0100
@@ -582,7 +582,7 @@
 		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);