From 95c13ace798f0a91ef6995d246b5bbddebc9dc0a Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 15 Feb 2021 21:49:38 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/ChunkedRequestStream.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/websocket-sharp/Net/ChunkedRequestStream.cs b/websocket-sharp/Net/ChunkedRequestStream.cs index bb42b0e4..3194ebb3 100644 --- a/websocket-sharp/Net/ChunkedRequestStream.cs +++ b/websocket-sharp/Net/ChunkedRequestStream.cs @@ -190,6 +190,7 @@ namespace WebSocketSharp.Net throw new ArgumentNullException ("asyncResult"); var ares = asyncResult as HttpStreamAsyncResult; + if (ares == null) throw new ArgumentException ("A wrong IAsyncResult.", "asyncResult");