Author: jmesnil
Date: 2009-11-18 05:28:42 -0500 (Wed, 18 Nov 2009)
New Revision: 8308
Modified:
trunk/src/main/org/hornetq/core/replication/impl/ReplicationManagerImpl.java
Log:
do not attempt reconnection on the replication connection when the ReplicationManager is
stopped
Modified: trunk/src/main/org/hornetq/core/replication/impl/ReplicationManagerImpl.java
===================================================================
---
trunk/src/main/org/hornetq/core/replication/impl/ReplicationManagerImpl.java 2009-11-18
09:54:38 UTC (rev 8307)
+++
trunk/src/main/org/hornetq/core/replication/impl/ReplicationManagerImpl.java 2009-11-18
10:28:42 UTC (rev 8308)
@@ -367,6 +367,11 @@
*/
public void stop() throws Exception
{
+ if (!started)
+ {
+ return;
+ }
+
enabled = false;
for (ReplicationContext ctx : activeContexts)
@@ -384,6 +389,8 @@
started = false;
+ failoverManager.causeExit();
+
if (connection != null)
{
connection.destroy();
Show replies by date