From 5d5a6d715ca52952cf5c57aed585cb60a789c348 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 11 Aug 2017 11:48:26 +0300 Subject: [PATCH] lost line --- sync/src/synchronization_peers_tasks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sync/src/synchronization_peers_tasks.rs b/sync/src/synchronization_peers_tasks.rs index 2cb9cfaa..a9323f7b 100644 --- a/sync/src/synchronization_peers_tasks.rs +++ b/sync/src/synchronization_peers_tasks.rs @@ -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) {