[tor-commits] [flashproxy/master] Disable the start function too when disabling.
dcf at torproject.org
dcf at torproject.org
Wed Mar 13 09:55:16 UTC 2013
commit 619a8ca02fb2190c269bff51a51becfdcfd4375b
Author: David Fifield <david at bamsoftware.com>
Date: Wed Mar 13 02:54:23 2013 -0700
Disable the start function too when disabling.
Otherwise the debug mode would print the message
Starting; will contact facilitator in 60 seconds.
even though that was false.
---
proxy/flashproxy.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 31a1f60..2fa6c99 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -632,6 +632,7 @@ function FlashProxy() {
/* Cease all network operations and prevent any future ones. */
this.disable = function() {
puts("Disabling.");
+ this.start = function() { };
this.proxy_main = function() { };
this.make_proxy_pair = function(client_addr, relay_addr) { };
while (this.proxy_pairs.length > 0)
More information about the tor-commits
mailing list