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
This commit is contained in:
Hiram R. Chirino 2006-07-24 17:30:16 +00:00
parent 71154628f8
commit 50a6495389
1 changed files with 1 additions and 4 deletions

View File

@ -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.");
}
}