From d4e2542404a61cecfdbba2250bdc0a26a711ffdf Mon Sep 17 00:00:00 2001 From: Robert Greig Date: Wed, 28 Feb 2007 15:43:24 +0000 Subject: (Patch submitted by Tomas Restrepo) QPID-385. Client was confusing connection failure with failover. Patch fixes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@512814 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qpid/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs b/qpid/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs index 7256ab9250..2b6f239127 100644 --- a/qpid/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs +++ b/qpid/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs @@ -148,7 +148,7 @@ namespace Qpid.Client.Protocol { if (_failoverState == FailoverState.NOT_STARTED) { - if (!(cause is AMQUndeliveredException)) + if (cause is AMQConnectionClosedException) { WhenClosed(); } @@ -195,7 +195,7 @@ namespace Qpid.Client.Protocol if (_failoverState == FailoverState.NOT_STARTED) { _failoverState = FailoverState.IN_PROGRESS; - startFailoverThread(); + StartFailoverThread(); } else { @@ -273,10 +273,10 @@ namespace Qpid.Client.Protocol _failoverHandler.setHost(host); _failoverHandler.setPort(port); // see javadoc for FailoverHandler to see rationale for separate thread - startFailoverThread(); + StartFailoverThread(); } - private void startFailoverThread() + private void StartFailoverThread() { Thread failoverThread = new Thread(new ThreadStart(_failoverHandler.Run)); failoverThread.Name = "Failover"; -- cgit v1.2.1