mirror of https://github.com/apache/activemq.git
If a transport error occurs, there is no point in trying to cleanup with the broker since transport has failed.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@643206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
431478a8f5
commit
3eb6aed961
|
@ -2050,13 +2050,6 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
if (firstFailureError == null) {
|
||||
firstFailureError = error;
|
||||
}
|
||||
if (!closed.get() && !closing.get()) {
|
||||
try {
|
||||
cleanup();
|
||||
} catch (JMSException e) {
|
||||
LOG.warn("Cleanup failed", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue