Skip to content

Commit

Permalink
Add debugging message to Peer regarding lost PING replies
Browse files Browse the repository at this point in the history
  • Loading branch information
catbref committed Mar 19, 2020
1 parent 2d18dd6 commit d7c26c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/qortal/network/Peer.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ public Message getResponse(Message message) throws InterruptedException {
final long after = System.currentTimeMillis();

if (message == null || message.getType() != MessageType.PING) {
LOGGER.debug(() -> String.format("Didn't receive reply from %s for PING ID %d", this, pingMessage.getId()));
this.disconnect("no ping received");
return;
}
Expand Down

0 comments on commit d7c26c2

Please sign in to comment.