Author: borges
Date: 2011-07-07 09:11:07 -0400 (Thu, 07 Jul 2011)
New Revision: 10948
Modified:
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationManagerImpl.java
Log:
avoid double negatives
Modified:
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationManagerImpl.java
===================================================================
---
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationManagerImpl.java 2011-07-07
10:49:27 UTC (rev 10947)
+++
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationManagerImpl.java 2011-07-07
13:11:07 UTC (rev 10948)
@@ -414,17 +414,15 @@
synchronized (replicationLock)
{
- if (!enabled)
+ if (enabled)
{
- // Already replicating channel failed, so just play the action now
-
- runItNow = true;
+ pendingTokens.add(repliToken);
+ replicatingChannel.send(packet);
}
else
{
- pendingTokens.add(repliToken);
-
- replicatingChannel.send(packet);
+ // Already replicating channel failed, so just play the action now
+ runItNow = true;
}
}
Show replies by date