diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-22 20:39:30 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-22 20:39:30 +0000 |
commit | c63e6361ada543078637d762b8b643f051b6d745 (patch) | |
tree | 4f64b9fbc5500c9c8594f549502ee9606caa5d92 /core | |
parent | abb088f7c4b9ab4371bc9eb22022a9e5a34e09cc (diff) | |
download | prosody-c63e6361ada543078637d762b8b643f051b6d745.tar.gz prosody-c63e6361ada543078637d762b8b643f051b6d745.zip |
s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/)
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 4e6dba5b..b8163efa 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -518,7 +518,7 @@ function mark_connected(session) session.log("info", session.direction.." s2s connection "..from.."->"..to.." complete"); local send_to_host = send_to_host; - function session.send(data) send_to_host(to, from, data); end + function session.send(data) return send_to_host(to, from, data); end local event_data = { session = session }; if session.type == "s2sout" then |