Peer.sendMessage() should return false when it can't send because it can't build the message

This commit is contained in:
catbref 2021-03-21 13:19:59 +00:00
parent 019cfdc1db
commit 745528a9b1

View File

@ -507,6 +507,7 @@ public class Peer {
}
} catch (MessageException e) {
LOGGER.warn(String.format("Failed to send %s message with ID %d to peer %s: %s", message.getType().name(), message.getId(), this, e.getMessage()));
return false;
} catch (IOException e) {
// Send failure
return false;