downloader: fixed a typo

This commit is contained in:
obscuren 2015-04-17 00:11:41 +02:00
parent 205378016f
commit eac2df02d1

View File

@ -311,7 +311,7 @@ out:
// 2) Measure their speed; // 2) Measure their speed;
// 3) Amount and availability. // 3) Amount and availability.
d.queue.deliver(pid, nil) d.queue.deliver(pid, nil)
if peer := p.peers[pid]; peer != nil { if peer := d.peers[pid]; peer != nil {
peer.demote() peer.demote()
} }
} }