From 6bb7fba3c54f1dc61311f5560dc4b34f4624e621 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Mon, 22 Oct 2007 19:01:16 +0000 Subject: [PATCH] Avoid deadlock described at: https://issues.apache.org/activemq/browse/AMQ-1468 Synchronization not really required once the transport errors out.. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@587198 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/transport/InactivityMonitor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java b/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java index 67133a5c7c..dfb2f55b9b 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java @@ -154,9 +154,7 @@ public class InactivityMonitor extends TransportFilter { if (monitorStarted.get()) { stopMonitorThreads(); } - synchronized (readChecker) { - transportListener.onException(error); - } + transportListener.onException(error); } private synchronized void startMonitorThreads() throws IOException {