Author: chirino
Date: Mon Jul 24 10:30:16 2006
New Revision: 425127

URL: http://svn.apache.org/viewvc?rev=425127&view=rev
Log:
always throw an error if the transport is being used when it's no running.  
This fixes a couple of failing tests.

Modified:
    
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java

Modified: 
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java
URL: 
http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java?rev=425127&r1=425126&r2=425127&view=diff
==============================================================================
--- 
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java
 (original)
+++ 
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java
 Mon Jul 24 10:30:16 2006
@@ -103,10 +103,7 @@
 
     protected void checkStarted(Command command) throws IOException {
         if (!isStarted()) {
-            // we might try to shut down the transport before it was ever 
started in some test cases
-            if (!(command instanceof ShutdownInfo || command instanceof 
RemoveInfo)) {
-                throw new IOException("The transport " + this + " of type: " + 
getClass().getName() + " is not running.");
-            }
+                       throw new IOException("The transport is not running.");
         }
     }
 


Reply via email to