Author: ataylor
Date: 2009-11-17 05:54:10 -0500 (Tue, 17 Nov 2009)
New Revision: 8296
Modified:
trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java
Log:
only add the remote binding to the bindings map if it doesnt already exist
Modified: trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java
===================================================================
---
trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java 2009-11-17
00:16:29 UTC (rev 8295)
+++
trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java 2009-11-17
10:54:10 UTC (rev 8296)
@@ -673,7 +673,6 @@
bridge.getName(),
distance + 1);
- bindings.put(clusterName, binding);
if (postOffice.getBinding(clusterName) != null)
{
@@ -688,6 +687,8 @@
return;
}
+ bindings.put(clusterName, binding);
+
try
{
postOffice.addBinding(binding);