mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-17 05:52:19 -04:00
add exc handler
This commit is contained in:
parent
89ca80364c
commit
e90c1cabfe
2 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,7 @@ public abstract class NetworkNode implements MessageListener, ConnectionListener
|
|||
newConnection.sendMessage(message);
|
||||
return newConnection; // can take a while when using tor
|
||||
} catch (Throwable throwable) {
|
||||
if (!(throwable instanceof ConnectException || throwable instanceof IOException)) {
|
||||
if (!(throwable instanceof ConnectException || throwable instanceof IOException || throwable instanceof TimeoutException)) {
|
||||
throwable.printStackTrace();
|
||||
log.error("Executing task failed. " + throwable.getMessage());
|
||||
}
|
||||
|
|
|
@ -654,6 +654,8 @@ public class PeerGroup implements MessageListener, ConnectionListener {
|
|||
reportedPeerAddresses.addAll(peerAddresses);
|
||||
purgeReportedPeersIfExceeds();
|
||||
}
|
||||
|
||||
printReportedPeers();
|
||||
}
|
||||
|
||||
private void purgeReportedPeersIfExceeds() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue