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/03/10 16:29:59 UTC
svn commit: r921402 -
/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Failover/FailoverTransport.cs
Author: tabish
Date: Wed Mar 10 15:29:59 2010
New Revision: 921402
URL: http://svn.apache.org/viewvc?rev=921402&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/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=921402&r1=921401&r2=921402&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 Wed Mar 10 15:29:59 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();