[tor-commits] [snowflake/master] use webrtcRemotes len for capacity instead of the chan
arlo at torproject.org
arlo at torproject.org
Sun Mar 27 16:09:19 UTC 2016
commit b2d7586cb47fdd69999cb8df02e303b83b41d51c
Author: Serene Han <keroserene+git at 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)
More information about the tor-commits
mailing list