mirror of https://github.com/apache/activemq.git
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:
parent
14755a19d5
commit
24cd2b3f29
|
@ -917,7 +917,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Force clean up on an error starting up.
|
// Force clean up on an error starting up.
|
||||||
stop();
|
pendingStop = true;
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
// stop() can be called from within the above block,
|
// stop() can be called from within the above block,
|
||||||
|
|
Loading…
Reference in New Issue