[Modify] Polish it

master
sta 6 years ago
parent 8f9d7ef2a3
commit 5c496b07b4

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

Loading…
Cancel
Save