[Modify] Polish it

This commit is contained in:
sta 2020-01-05 22:05:18 +09:00
parent 4f236579d4
commit 73aef37b0e

View File

@ -249,8 +249,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.";