浏览代码

2009-06-10 Atsushi Enomoto <[email protected]>

	* ReplyChannelBase.cs : fix wrong null delegate check point.


svn path=/trunk/mcs/; revision=135824
Atsushi Eno 16 年之前
父节点
当前提交
a55851fb5e

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog

@@ -1,3 +1,7 @@
+2009-06-10  Atsushi Enomoto  <[email protected]>
+
+	* ReplyChannelBase.cs : fix wrong null delegate check point.
+
 2009-06-10  Atsushi Enomoto  <[email protected]>
 
 	* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are

+ 2 - 2
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ReplyChannelBase.cs

@@ -69,14 +69,14 @@ namespace System.ServiceModel.Channels
 
 		public virtual bool EndTryReceiveRequest (IAsyncResult result)
 		{
-			if (try_recv_delegate == null)
-				throw new InvalidOperationException ("BeginTryReceiveRequest operation has not started");
 			RequestContext dummy;
 			return EndTryReceiveRequest (result, out dummy);
 		}
 
 		public virtual bool EndTryReceiveRequest (IAsyncResult result, out RequestContext context)
 		{
+			if (try_recv_delegate == null)
+				throw new InvalidOperationException ("BeginTryReceiveRequest operation has not started");
 			return try_recv_delegate.EndInvoke (out context, result);
 		}