[Modify] Polish it

master
sta 6 years ago
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…
Cancel
Save