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