From b2d7586cb47fdd69999cb8df02e303b83b41d51c Mon Sep 17 00:00:00 2001 From: Serene Han Date: Fri, 25 Mar 2016 17:03:38 -0700 Subject: [PATCH] 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)