diff options
author | Robert Greig <rgreig@apache.org> | 2007-02-28 15:43:24 +0000 |
---|---|---|
committer | Robert Greig <rgreig@apache.org> | 2007-02-28 15:43:24 +0000 |
commit | 98e4ad539df5235a60cac39e26d60c44357aa9f0 (patch) | |
tree | 681e142f6a30b5b23f3ba839f8365bc0fa9e13a7 | |
parent | 96c09f132c373ce7b735ef0e846a15916b90abda (diff) | |
download | qpid-python-98e4ad539df5235a60cac39e26d60c44357aa9f0.tar.gz |
(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/qpid@512814 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs b/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs index 7256ab9250..2b6f239127 100644 --- a/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs +++ b/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"; |