activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r390614 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
Date Sat, 01 Apr 2006 08:03:08 GMT
Author: rajdavies
Date: Sat Apr  1 00:03:05 2006
New Revision: 390614

URL: http://svn.apache.org/viewcvs?rev=390614&view=rev
Log:
don't iterate through dispatchQueue if the broker is stopped

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java?rev=390614&r1=390613&r2=390614&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
Sat Apr  1 00:03:05 2006
@@ -577,7 +577,7 @@
     }       
     
     public boolean iterate() {
-        if( dispatchQueue.isEmpty() ) {
+        if( dispatchQueue.isEmpty() || broker.isStopped()) {
             return false;
         } else {
             Command command = (Command) dispatchQueue.remove(0);



Mime
View raw message