[Modify] Polish it

This commit is contained in:
sta 2020-01-11 21:39:30 +09:00
parent a5e9b0cb17
commit f0aa1ed6f5

View File

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