Skip to content

Commit

Permalink
PeerGroup.addInacrive(): Remove isAlreadyAdded() check because it is …
Browse files Browse the repository at this point in the history
…not necessary.
  • Loading branch information
oscarguindzberg committed Apr 1, 2019
1 parent aa49498 commit 26889a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/main/java/org/bitcoinj/core/PeerGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,7 @@ private boolean addInactive(PeerAddress peerAddress) {
return false;
}
backoffMap.put(peerAddress, new ExponentialBackoff(peerBackoffParams));

if (!isAlreadyAdded(peerAddress))
inactives.offer(peerAddress);
inactives.offer(peerAddress);

return true;
} finally {
Expand Down

0 comments on commit 26889a8

Please sign in to comment.