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
This commit is contained in:
Gary Tully 2011-08-03 10:17:17 +00:00
parent 14755a19d5
commit 24cd2b3f29
1 changed files with 1 additions and 1 deletions

View File

@ -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,