You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/09/23 20:29:41 UTC

svn commit: r1000568 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs

Author: tabish
Date: Thu Sep 23 18:29:40 2010
New Revision: 1000568

URL: http://svn.apache.org/viewvc?rev=1000568&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-285

Fix the if condition so that it only exits when the number of backups has been reached or all the URIs have been tried.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs?rev=1000568&r1=1000567&r2=1000568&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs Thu Sep 23 18:29:40 2010
@@ -1164,7 +1164,7 @@ namespace Apache.NMS.ActiveMQ.Transport.
 							}
 						}
 
-						if(backups.Count < BackupPoolSize)
+						if(backups.Count == BackupPoolSize)
 						{
 							break;
 						}