From c63e6361ada543078637d762b8b643f051b6d745 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 22 Dec 2010 20:39:30 +0000 Subject: s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/) --- 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 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 -- cgit v1.2.3