[Modify] Polish it

This commit is contained in:
sta 2020-01-16 21:52:48 +09:00
parent 14b0c2f711
commit a3b408001b

View File

@ -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");