summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Restrepo <tomasr@apache.org>2007-05-10 22:59:58 +0000
committerTomas Restrepo <tomasr@apache.org>2007-05-10 22:59:58 +0000
commite68ec54199bebef063f11b84ba14b071fcecbfdf (patch)
tree2b13535a600d127447393dc780e44454c49e09be
parentada2ad9f072239a79923b432acff5456aee76773 (diff)
downloadqpid-python-e68ec54199bebef063f11b84ba14b071fcecbfdf.tar.gz
Fixed race condition introduced by QPID-398, removed unneeded files
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@537029 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketProcessor.cs0
-rw-r--r--dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs8
2 files changed, 4 insertions, 4 deletions
diff --git a/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketProcessor.cs b/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketProcessor.cs
deleted file mode 100644
index e69de29bb2..0000000000
--- a/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketProcessor.cs
+++ /dev/null
diff --git a/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs b/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs
index 607b7ca422..1fb07fb245 100644
--- a/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs
+++ b/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs
@@ -118,16 +118,16 @@ namespace Qpid.Client.Transport.Socket.Blocking
try
{
Queue frames = _amqpChannel.EndRead(result);
- // if we're not stopping, post a read again
- bool stopping = _stopEvent.WaitOne(0, false);
- if ( !stopping )
- _amqpChannel.BeginRead(new AsyncCallback(OnAsyncReadDone), null);
// process results
foreach ( IDataBlock dataBlock in frames )
{
_protocolListener.OnMessage(dataBlock);
}
+ // if we're not stopping, post a read again
+ bool stopping = _stopEvent.WaitOne(0, false);
+ if ( !stopping )
+ _amqpChannel.BeginRead(new AsyncCallback(OnAsyncReadDone), null);
} catch ( Exception e )
{
_protocolListener.OnException(e);