summaryrefslogtreecommitdiff
path: root/qpid/dotnet
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-02-28 15:43:24 +0000
committerRobert Greig <rgreig@apache.org>2007-02-28 15:43:24 +0000
commitd4e2542404a61cecfdbba2250bdc0a26a711ffdf (patch)
treecd45749360a4eb2325d297ea1959df7206e79ae1 /qpid/dotnet
parent12297c495bf6754b805bc6da34635e0964619649 (diff)
downloadqpid-python-d4e2542404a61cecfdbba2250bdc0a26a711ffdf.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@512814 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/dotnet')
-rw-r--r--qpid/dotnet/Qpid.Client/Client/Protocol/AMQProtocolListener.cs8
1 files 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";