[Modify] Polish it

This commit is contained in:
sta 2020-01-14 20:52:40 +09:00
parent 448231e1c6
commit fcbff44776

View File

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