[Modify] Polish it

This commit is contained in:
sta 2020-01-27 21:08:25 +09:00
parent 67f467b2e5
commit 59f54c37af

View File

@ -298,8 +298,10 @@ namespace WebSocketSharp.Net
public override void EndWrite (IAsyncResult asyncResult)
{
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
_body.EndWrite (asyncResult);
}