You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by to...@apache.org on 2007/05/11 00:59:58 UTC
svn commit: r537029 - in
/incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking:
BlockingSocketProcessor.cs BlockingSocketTransport.cs
Author: tomasr
Date: Thu May 10 15:59:58 2007
New Revision: 537029
URL: http://svn.apache.org/viewvc?view=rev&rev=537029
Log:
Fixed race condition introduced by QPID-398, removed unneeded files
Removed:
incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketProcessor.cs
Modified:
incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs
Modified: incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs?view=diff&rev=537029&r1=537028&r2=537029
==============================================================================
--- incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs (original)
+++ incubator/qpid/branches/M2/dotnet/Qpid.Client/Client/Transport/Socket/Blocking/BlockingSocketTransport.cs Thu May 10 15:59:58 2007
@@ -118,16 +118,16 @@
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);