Browse Source

avoid logging a socket closed error when the connection has been shutdown

master
Craig Raw 2 years ago
parent
commit
fb25edb51c
  1. 2
      src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java

2
src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java

@ -195,7 +195,9 @@ public class TcpTransport implements CloseableTransport, TimeoutCounter {
}
}
} catch(IOException e) {
if(!closed) {
log.error("Error opening socket inputstream", e);
}
if(running) {
lastException = e;
reading = false;

Loading…
Cancel
Save