aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eth/downloader/downloader.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index d26995782..839969f03 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -1491,6 +1491,10 @@ func (d *Downloader) qosTuner() {
func (d *Downloader) qosReduceConfidence() {
// If we have a single peer, confidence is always 1
peers := uint64(d.peers.Len())
+ if peers == 0 {
+ // Ensure peer connectivity races don't catch us off guard
+ return
+ }
if peers == 1 {
atomic.StoreUint64(&d.rttConfidence, 1000000)
return
ralegacy.org which seems to carry RedHat 7.2, 7.3, 8 and 9 RPMspav2005-11-261-1/+4 * Allow to replace with an old package (useful in the portupgrade case).netchild2005-11-231-1/+1 * Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-181-2/+7 * Respect the user's USE_LINUX setting.trevor2005-03-021-1/+0 * 1. uses "ARCH" instead of "MACHINE_ARCH"obrien2005-02-171-12/+19 * Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-01