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

[tor-commits] [flashproxy/master] Disable the start function too when disabling.



commit 619a8ca02fb2190c269bff51a51becfdcfd4375b
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)

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