Skip to content

Instantly share code, notes, and snippets.

@Sean-Der
Created January 3, 2021 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sean-Der/d8f871fed60f4043502d37123f8c76a1 to your computer and use it in GitHub Desktop.
Save Sean-Der/d8f871fed60f4043502d37123f8c76a1 to your computer and use it in GitHub Desktop.
diff --git a/client/main.go b/client/main.go
index 95db8ec..bd65ae3 100644
--- a/client/main.go
+++ b/client/main.go
@@ -57,9 +57,17 @@ func main() {
panic("client expects server host+port")
}
+ i := 0
for range time.NewTicker(5 * time.Second).C {
+ i++
for i := 0; i <= 10; i++ {
newPeerConnection()
}
+
+ if i >= 7 {
+ break
+ }
}
+
+ time.Sleep(time.Second * 30)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment