mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 23:56:30 -04:00
add exc handler
This commit is contained in:
parent
89ca80364c
commit
e90c1cabfe
@ -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…
x
Reference in New Issue
Block a user