s2smanager: session.send(): Return the result of send_to_host() (and incidentally...
authorMatthew Wild <mwild1@gmail.com>
Wed, 22 Dec 2010 20:39:30 +0000 (20:39 +0000)
committerMatthew Wild <mwild1@gmail.com>
Wed, 22 Dec 2010 20:39:30 +0000 (20:39 +0000)
core/s2smanager.lua

index 4e6dba5baaa26b343c1ae803eee0f7e2e2f5c64b..b8163efa8df63d12b6e08936f30f27aafb68067a 100644 (file)
@@ -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