Author: aidan
Date: Mon May 5 05:26:29 2008
New Revision: 653447
URL: http://svn.apache.org/viewvc?rev=653447&view=rev
Log:
Check if consumer is closed and dont reclose it
Modified:
incubator/qpid/branches/M2.x/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
Modified:
incubator/qpid/branches/M2.x/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.x/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs?rev=653447&r1=653446&r2=653447&view=diff
==============================================================================
---
incubator/qpid/branches/M2.x/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
(original)
+++
incubator/qpid/branches/M2.x/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
Mon May 5 05:26:29 2008
@@ -266,7 +266,11 @@
public override void Close()
{
- // FIXME: Don't we need FailoverSupport here (as we have
SyncWrite). i.e. rather than just locking FailOverMutex
+ if (_closed == CLOSED)
+ {
+ return;
+ }
+ // FIXME: Don't we need FailoverSupport here (as we have
SyncWrite). i.e. rather than just locking FailOverMutex
lock (_channel.Connection.FailoverMutex)
{
lock (_closingLock)