ARTEMIS-1305 Avoid deadlock when shutting down RA and reconnects
(cherry picked from commit 7adc8339c7
)
This commit is contained in:
parent
e1d6f6cb87
commit
8e7d4fb34e
|
@ -221,14 +221,6 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
|
||||||
ActiveMQRALogger.LOGGER.trace("destroyHandles()");
|
ActiveMQRALogger.LOGGER.trace("destroyHandles()");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
if (connection != null) {
|
|
||||||
connection.stop();
|
|
||||||
}
|
|
||||||
} catch (Throwable t) {
|
|
||||||
logger.trace("Ignored error stopping connection", t);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (ActiveMQRASession session : handles) {
|
for (ActiveMQRASession session : handles) {
|
||||||
session.destroy();
|
session.destroy();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue