# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1293050370 0
# Node ID d0b8fa48645817585a6d5edb3ba7200e1efce503
# Parent  21391aa2d9bc1bc0bcd973b13b1db5bfcee23e5b
s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/)

diff -r 21391aa2d9bc -r d0b8fa486458 core/s2smanager.lua
--- a/core/s2smanager.lua	Wed Dec 22 20:38:40 2010 +0000
+++ b/core/s2smanager.lua	Wed Dec 22 20:39:30 2010 +0000
@@ -555,7 +555,7 @@
 	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