]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Sleep between announces in case there are no trackers
authorMatt Joiner <anacrolix@gmail.com>
Mon, 1 Dec 2014 18:43:34 +0000 (12:43 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 1 Dec 2014 18:43:34 +0000 (12:43 -0600)
client.go

index 2be26443233e1aa1e3122d4c7adbce0b917c12d0..1e45d7dcc09b8c87d68cb5524dce7d1506a178b8 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1744,6 +1744,8 @@ newAnnounce:
                                continue newAnnounce
                        }
                }
+               // TODO: Wait until trackers are added if there are none.
+               time.Sleep(10 * time.Second)
        }
 }