mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Only log errors if shutdown is not in progress.
I want to avoid to risk changes with not calling error handlers/listeners in those cases as not 100% sure if that could have unintended effects. Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
6addd27a33
commit
1e32d86b23
@ -162,7 +162,9 @@ public abstract class NetworkNode implements MessageListener {
|
||||
try {
|
||||
socket.close();
|
||||
} catch (Throwable throwable) {
|
||||
log.error("Error at closing socket " + throwable);
|
||||
if (!shutDownInProgress) {
|
||||
log.error("Error at closing socket " + throwable);
|
||||
}
|
||||
}
|
||||
existingConnection.sendMessage(networkEnvelope);
|
||||
return existingConnection;
|
||||
@ -188,7 +190,9 @@ public abstract class NetworkNode implements MessageListener {
|
||||
|
||||
@Override
|
||||
public void onError(Throwable throwable) {
|
||||
log.error("new OutboundConnection.ConnectionListener.onError " + throwable.getMessage());
|
||||
if (!shutDownInProgress) {
|
||||
log.error("new OutboundConnection.ConnectionListener.onError " + throwable.getMessage());
|
||||
}
|
||||
connectionListeners.forEach(e -> e.onError(throwable));
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user