# HG changeset patch # User Matthew Wild # Date 1293050370 0 # Node ID 2cb5bb26b831e6eff8d5f097ebc3b50c7db70e94 # Parent 0e927d4644c32dae8078b1e3355650df95d94d2e s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/) diff -r 0e927d4644c3 -r 2cb5bb26b831 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 @@ -518,7 +518,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