mirror of https://github.com/apache/activemq.git
don't remove connection info from broker if the transport has failed
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62c28d1b77
commit
9c5680c9f6
|
@ -1184,9 +1184,11 @@ public class ActiveMQConnection extends DefaultTransportListener implements Conn
|
||||||
c.dispose();
|
c.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( isConnectionInfoSentToBroker ) {
|
if(isConnectionInfoSentToBroker){
|
||||||
asyncSendPacket(info.createRemoveCommand());
|
if(!transportFailed.get()){
|
||||||
isConnectionInfoSentToBroker = false;
|
asyncSendPacket(info.createRemoveCommand());
|
||||||
|
}
|
||||||
|
isConnectionInfoSentToBroker=false;
|
||||||
}
|
}
|
||||||
if( userSpecifiedClientID ) {
|
if( userSpecifiedClientID ) {
|
||||||
info.setClientId(null);
|
info.setClientId(null);
|
||||||
|
|
Loading…
Reference in New Issue