From fb25edb51c86fe0fb2f24b577d8cf0551a97308c Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 16 Nov 2022 13:05:48 +0200 Subject: [PATCH] avoid logging a socket closed error when the connection has been shutdown --- src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java b/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java index 8bc91be8..93518336 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java @@ -195,7 +195,9 @@ public class TcpTransport implements CloseableTransport, TimeoutCounter { } } } catch(IOException e) { - log.error("Error opening socket inputstream", e); + if(!closed) { + log.error("Error opening socket inputstream", e); + } if(running) { lastException = e; reading = false;