[Modify] Polish it

master
sta 6 years ago
parent 759c5f6719
commit c8f022fb8f

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

Loading…
Cancel
Save