[tor-commits] [snowflake/master] Fix ref to undefined global in the badge

arlo at torproject.org arlo at torproject.org
Wed Jul 3 13:42:14 UTC 2019


commit 526e42a443d81b121ac14c125a2a85e0170b8cff
Author: Arlo Breault <arlolra at gmail.com>
Date:   Wed Jul 3 15:40:05 2019 +0200

    Fix ref to undefined global in the badge
    
    Introduced in ead579a, `config` is only a global in the webextension.
---
 proxy/snowflake.coffee | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/snowflake.coffee b/proxy/snowflake.coffee
index d54f593..6062ca4 100644
--- a/proxy/snowflake.coffee
+++ b/proxy/snowflake.coffee
@@ -55,7 +55,7 @@ class Snowflake
     log 'Snowflake IDs: ' + (@proxyPairs.map (p) -> p.id).join ' | '
     @pollBroker()
     @pollInterval = setInterval((=> @pollBroker()),
-      config.defaultBrokerPollInterval)
+      @config.defaultBrokerPollInterval)
 
   # Regularly poll Broker for clients to serve until this snowflake is
   # serving at capacity, at which point stop polling.



More information about the tor-commits mailing list