[Modify] Polish it

This commit is contained in:
sta 2020-01-27 21:15:16 +09:00
parent 8f9d7ef2a3
commit 5c496b07b4

View File

@ -280,8 +280,10 @@ namespace WebSocketSharp.Net
object state
)
{
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
return _body.BeginWrite (buffer, offset, count, callback, state);
}