lost line

This commit is contained in:
Svyatoslav Nikolsky 2017-08-11 11:48:26 +03:00
parent b33e327d32
commit 5d5a6d715c
1 changed files with 1 additions and 0 deletions

View File

@ -229,6 +229,7 @@ impl PeersTasks {
self.stats.get_mut(&peer_index).map(|br| br.speed.stop());
// mark this peer as idle for blocks request
self.blocks_requests.remove(&peer_index);
self.idle_for_blocks.insert(peer_index);
// also mark as available for headers request if not yet
if !self.headers_requests.contains_key(&peer_index) {