aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 91cc65249..4e795af6d 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -311,7 +311,7 @@ out:
// 2) Measure their speed;
// 3) Amount and availability.
d.queue.deliver(pid, nil)
- if peer := p.peers[pid]; peer != nil {
+ if peer := d.peers[pid]; peer != nil {
peer.demote()
}
}