[Modify] Polish it

This commit is contained in:
sta 2021-02-08 21:37:02 +09:00
parent 3a5d4a03f0
commit c4c475dc33

View File

@ -218,8 +218,11 @@ namespace WebSocketSharp.Net
public override int EndRead (IAsyncResult asyncResult)
{
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
if (asyncResult == null)
throw new ArgumentNullException ("asyncResult");