From 24cd2b3f2902242fc8b62bdcaf098405f290392e Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Wed, 3 Aug 2011 10:17:17 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-3435: Connection is taking a long time to close warning and hung close thread. Ensure stop called during start can attempt a stop such that it does not hang git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1153419 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/TransportConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java b/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java index 27613bf4eb..12e65533f1 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java @@ -917,7 +917,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor { } } catch (Exception e) { // Force clean up on an error starting up. - stop(); + pendingStop = true; throw e; } finally { // stop() can be called from within the above block,