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:
Robert Davies 2007-12-19 11:49:15 +00:00
parent a32832f4cb
commit 3318a9f0e3
1 changed files with 1 additions and 1 deletions

View File

@ -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);