[Modify] Polish it
This commit is contained in:
parent
14b0c2f711
commit
a3b408001b
@ -972,8 +972,10 @@ namespace WebSocketSharp.Net
|
||||
/// </exception>
|
||||
public void Close (byte[] responseEntity, bool willBlock)
|
||||
{
|
||||
if (_disposed)
|
||||
throw new ObjectDisposedException (GetType ().ToString ());
|
||||
if (_disposed) {
|
||||
var name = GetType ().ToString ();
|
||||
throw new ObjectDisposedException (name);
|
||||
}
|
||||
|
||||
if (responseEntity == null)
|
||||
throw new ArgumentNullException ("responseEntity");
|
||||
|
Loading…
Reference in New Issue
Block a user