[Modify] Polish it

This commit is contained in:
sta 2020-01-12 19:33:01 +09:00
parent f0aa1ed6f5
commit bfbc8ec186

View File

@ -607,8 +607,10 @@ namespace WebSocketSharp.Net
}
set {
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
if (_headersSent) {
var msg = "The response is already being sent.";