s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/)

Wed, 22 Dec 2010 20:39:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 22 Dec 2010 20:39:30 +0000
changeset 3948
d0b8fa486458
parent 3947
21391aa2d9bc
child 3949
fc4ff6db1e57

s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/)

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- 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

mercurial