[Modify] Polish it

This commit is contained in:
sta 2019-10-26 17:28:45 +09:00
parent 365022fa3d
commit 791dcfe186

View File

@ -447,7 +447,14 @@ namespace WebSocketSharp.Net
}
set {
checkDisposedOrHeadersSent ();
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_headersSent) {
var msg = "The response is already being sent.";
throw new InvalidOperationException (msg);
}
_sendChunked = value;
}
}