Skip to content

Commit

Permalink
PeerGroup.triggerConnectionsJob: Remove isAlreadyAdded() check becaus…
Browse files Browse the repository at this point in the history
…e it is not necessary.
  • Loading branch information
oscarguindzberg committed Apr 1, 2019
1 parent 2d7c24c commit b8d1534
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/org/bitcoinj/core/PeerGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,7 @@ public void go() {
long delay = retryTime - now;
log.info("Waiting {} msec before next connect attempt {}", delay, addrToTry == null ? "" : "to " + addrToTry);

if (!isAlreadyAdded(addrToTry))
inactives.add(addrToTry);
inactives.add(addrToTry);
executor.schedule(this, delay, TimeUnit.MILLISECONDS);
return;
}
Expand Down

0 comments on commit b8d1534

Please sign in to comment.