[Modify] Polish it

This commit is contained in:
sta 2020-01-07 22:26:34 +09:00
parent 144e78b1b9
commit c1ae944c65

View File

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