[Modify] Polish it
This commit is contained in:
parent
0eaac91f03
commit
f0199454de
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user