Skip to content

Commit

Permalink
Merge pull request tronprotocol#311 from tronprotocol/fixDuplicateSyn…
Browse files Browse the repository at this point in the history
…cMessage

fix save dead peer bug
  • Loading branch information
olenheim authored Mar 28, 2018
2 parents ee5ed2d + 3de6e93 commit 9882a05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void dbWrite() {
Set<Node> batch = new HashSet<>();
synchronized (this) {
for (NodeHandler nodeHandler: nodeHandlerMap.values()){
if (nodeHandler.state != NodeHandler.State.Dead){
if (!nodeHandler.state.equals(NodeHandler.State.Dead)) {
batch.add(nodeHandler.getNode());
}
}
Expand Down

0 comments on commit 9882a05

Please sign in to comment.