mirror of https://github.com/apache/activemq.git
ConnectionClosed exceptions being thrown in a regular connection close
removed the isClosing() check before sending async git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@605518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a32832f4cb
commit
3318a9f0e3
|
@ -1144,7 +1144,7 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
||||||
* @throws JMSException
|
* @throws JMSException
|
||||||
*/
|
*/
|
||||||
public void asyncSendPacket(Command command) throws JMSException {
|
public void asyncSendPacket(Command command) throws JMSException {
|
||||||
if (isClosed() || closing.get()) {
|
if (isClosed()) {
|
||||||
throw new ConnectionClosedException();
|
throw new ConnectionClosedException();
|
||||||
} else {
|
} else {
|
||||||
doAsyncSendPacket(command);
|
doAsyncSendPacket(command);
|
||||||
|
|
Loading…
Reference in New Issue