From 5ebf63e0dead52903fccf68198f69e70fe2bd98d Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 19 Dec 2023 12:19:35 -0500 Subject: [PATCH] silent fail on sending message after stopped --- p2p/src/main/java/haveno/network/p2p/network/Connection.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/p2p/src/main/java/haveno/network/p2p/network/Connection.java b/p2p/src/main/java/haveno/network/p2p/network/Connection.java index b807aab349..b991cae6f9 100644 --- a/p2p/src/main/java/haveno/network/p2p/network/Connection.java +++ b/p2p/src/main/java/haveno/network/p2p/network/Connection.java @@ -499,8 +499,7 @@ public class Connection implements HasCapabilities, Runnable, MessageListener { Uninterruptibles.sleepUninterruptibly(200, TimeUnit.MILLISECONDS); } catch (Throwable t) { - log.error(t.getMessage()); - t.printStackTrace(); + handleException(t); } finally { stopped = true; UserThread.execute(() -> doShutDown(closeConnectionReason, shutDownCompleteHandler));