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 | 1547e93d2824ad08457f3387d463b5d27c596b2a (patch) | |
tree | 231d801e4bd33ff5299fd7eab38fc46f60ffd870 | |
parent | 3c4f63db5184de978e545dc0ed437ffbf0a98a30 (diff) | |
download | prosody-1547e93d2824ad08457f3387d463b5d27c596b2a.tar.gz prosody-1547e93d2824ad08457f3387d463b5d27c596b2a.zip |
s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/)
-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 7ba3f1d0..a4fdcbb4 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -555,7 +555,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 |