[Modify] Polish it

This commit is contained in:
sta 2020-01-17 19:40:55 +09:00
parent a3b408001b
commit d77475aa0f

View File

@ -1071,8 +1071,10 @@ namespace WebSocketSharp.Net
/// </exception>
public void Redirect (string url)
{
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.";