[tor-commits] [flashproxy/js] Add a ProxyPair.close method.
dcf at torproject.org
dcf at torproject.org
Thu Apr 5 07:11:47 UTC 2012
commit aae876084a5d13a928e874e3bac53cec4689d65c
Author: David Fifield <david at bamsoftware.com>
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;
More information about the tor-commits
mailing list