]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Extra time between tracker announces
authorMatt Joiner <anacrolix@gmail.com>
Fri, 28 Nov 2014 14:39:13 +0000 (08:39 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 28 Nov 2014 14:39:13 +0000 (08:39 -0600)
client.go

index d2ebfbcd71500747cc568ed3c3849ce12de23e7b..7230118bb060203c3918ec63e8c5ce0825b6ee33 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1566,7 +1566,8 @@ newAnnounce:
                                continue newAnnounce
                        }
                }
-               time.Sleep(5 * time.Second)
+               // Couldn't announce at all. Wait a bit before trying again.
+               time.Sleep(15 * time.Second)
        }
 }