[Modify] Polish it
This commit is contained in:
parent
3a5d4a03f0
commit
c4c475dc33
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user