[Modify] Polish it

This commit is contained in:
sta 2020-01-13 22:10:10 +09:00
parent 7284b6f97c
commit 5ddf6b4b32

View File

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