Skip to content

Commit

Permalink
Remove unavailable item from active sync requests, fix node stuck iss…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnotestein committed May 5, 2021
1 parent 14a76df commit 3ffe50c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/net/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,7 @@ namespace graphene { namespace net {
auto sync_item_iter = originating_peer->sync_items_requested_from_peer.find(requested_item.item_hash);
if (sync_item_iter != originating_peer->sync_items_requested_from_peer.end())
{
_active_sync_requests.erase(*sync_item_iter);
originating_peer->sync_items_requested_from_peer.erase(sync_item_iter);

if (originating_peer->peer_needs_sync_items_from_us)
Expand Down

0 comments on commit 3ffe50c

Please sign in to comment.