[Modify] Polish it

This commit is contained in:
sta 2020-01-25 22:51:22 +09:00
parent 95aa75edf3
commit 3dd2a29965

View File

@ -327,8 +327,10 @@ namespace WebSocketSharp.Net
public override void Write (byte[] buffer, int offset, int count)
{
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
_body.Write (buffer, offset, count);
}