mirror of https://github.com/apache/activemq.git
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:
parent
71154628f8
commit
50a6495389
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue