From c6ddf7f4ee8c5ab170f454c1b57b708897c79d2e Mon Sep 17 00:00:00 2001
From: Marco Cirillo <maranda@lightwitch.org>
Date: Sun, 26 Aug 2012 22:54:10 +0000
Subject: s2smanager: missing return on session.send function.

---
 core/s2smanager.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'core')

diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 76dde9d2..4c018713 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -96,7 +96,7 @@ function mark_connected(session)
 	else
 		local host_session = hosts[to];
 		session.send = function(stanza)
-			host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza });
+			return host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza });
 		end;
 
 		prosody.events.fire_event("s2sin-established", event_data);
-- 
cgit v1.2.3