[Modify] Polish it

This commit is contained in:
sta 2019-10-23 17:12:33 +09:00
parent 0eaac91f03
commit f0199454de

View File

@ -284,7 +284,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);
}
_keepAlive = value;
}
}