[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Add a ProxyPair.close method.



commit aae876084a5d13a928e874e3bac53cec4689d65c
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Apr 4 22:40:42 2012 -0700

    Add a ProxyPair.close method.
---
 flashproxy.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/flashproxy.js b/flashproxy.js
index 9f3fdc6..8c29d82 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -536,6 +536,11 @@ function ProxyPair(client_addr, relay_addr, rate_limit)
         return ws.readyState == ws.CLOSED;
     }
 
+    this.close = function() {
+        this.client_s.close();
+        this.relay_s.close();
+    };
+
     /* Send as much data as the rate limit currently allows. */
     this.flush = function() {
         var busy;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits