From 50a649538981b0a72102456c6ad1d4ca683ebc3e Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Mon, 24 Jul 2006 17:30:16 +0000 Subject: [PATCH] always throw an error if the transport is being used when it's no running. This fixes a couple of failing tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@425127 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/transport/TransportSupport.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java b/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java index 84713d96a4..4123855261 100644 --- a/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/TransportSupport.java @@ -103,10 +103,7 @@ public abstract class TransportSupport extends ServiceSupport implements Transpo 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."); } }