commit b2d7586cb47fdd69999cb8df02e303b83b41d51c Author: Serene Han <keroserene+...@gmail.com> Date: Fri Mar 25 17:03:38 2016 -0700
use webrtcRemotes len for capacity instead of the chan --- client/snowflake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/snowflake.go b/client/snowflake.go index a9f17cc..fa02178 100644 --- a/client/snowflake.go +++ b/client/snowflake.go @@ -59,7 +59,7 @@ type SnowflakeChannel interface { // transfer to the Tor SOCKS handler when needed. func SnowflakeConnectLoop() { for { - numRemotes := len(snowflakeChan) + numRemotes := len(webrtcRemotes) if numRemotes >= SnowflakeCapacity { log.Println("At Capacity: ", numRemotes, "snowflake. Re-checking in 10s") <-time.After(time.Second * 10) _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits