Commit 3edc4698 authored by Péter Szilágyi's avatar Péter Szilágyi

Merge pull request #954 from karalabe/fix-downloader-nil-panic

eth/downloader: fix nil panic caused by wrong variable use
parents 7cb0e242 910a6d4e
...@@ -289,7 +289,7 @@ out: ...@@ -289,7 +289,7 @@ out:
// already fetched hash list. This can't guarantee 100% correctness but does // already fetched hash list. This can't guarantee 100% correctness but does
// a fair job. This is always either correct or false incorrect. // a fair job. This is always either correct or false incorrect.
for _, peer := range d.peers.AllPeers() { for _, peer := range d.peers.AllPeers() {
if d.queue.Has(peer.head) && !attemptedPeers[p.id] { if d.queue.Has(peer.head) && !attemptedPeers[peer.id] {
p = peer p = peer
break break
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment