Author: tabish
Date: Wed Mar 10 15:34:54 2010
New Revision: 921404
URL: http://svn.apache.org/viewvc?rev=921404&view=rev
Log:
fix for: https://issues.apache.org/activemq/browse/AMQNET-241
Stop waking up the reconnect task once the FailoverTransport has reached its
maxReconnectAttempts threshold.
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Transport/Failover/FailoverTransport.cs?rev=921404&r1=921403&r2=921404&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
Wed Mar 10 15:34:54 2010
@@ -104,7 +104,7 @@ namespace Apache.NMS.ActiveMQ.Transport.
{
bool result = false;
bool buildBackup = true;
- bool doReconnect = !parent.disposed;
+ bool doReconnect = !parent.disposed &&
parent.connectionFailure == null;
try
{
parent.backupMutex.WaitOne();