mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
use webrtcRemotes len for capacity instead of the chan
This commit is contained in:
parent
22ace32a71
commit
b2d7586cb4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue