mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-25 07:10:48 -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);
|
newConnection.sendMessage(message);
|
||||||
return newConnection; // can take a while when using tor
|
return newConnection; // can take a while when using tor
|
||||||
} catch (Throwable throwable) {
|
} catch (Throwable throwable) {
|
||||||
if (!(throwable instanceof ConnectException || throwable instanceof IOException)) {
|
if (!(throwable instanceof ConnectException || throwable instanceof IOException || throwable instanceof TimeoutException)) {
|
||||||
throwable.printStackTrace();
|
throwable.printStackTrace();
|
||||||
log.error("Executing task failed. " + throwable.getMessage());
|
log.error("Executing task failed. " + throwable.getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
@ -654,6 +654,8 @@ public class PeerGroup implements MessageListener, ConnectionListener {
|
||||||
reportedPeerAddresses.addAll(peerAddresses);
|
reportedPeerAddresses.addAll(peerAddresses);
|
||||||
purgeReportedPeersIfExceeds();
|
purgeReportedPeersIfExceeds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printReportedPeers();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void purgeReportedPeersIfExceeds() {
|
private void purgeReportedPeersIfExceeds() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue