[Modify] Polish it
This commit is contained in:
parent
a0fa4b519b
commit
f1d0586270
@ -310,9 +310,16 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
set {
|
set {
|
||||||
|
string msg;
|
||||||
|
if (!checkIfAvailable (true, false, true, false, false, true, out msg)) {
|
||||||
|
_logger.Error (msg);
|
||||||
|
error ("An error has occurred in setting the compression.", null);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lock (_forState) {
|
lock (_forState) {
|
||||||
string msg;
|
if (!checkIfAvailable (true, false, false, true, out msg)) {
|
||||||
if (!checkIfAvailable (true, false, true, false, false, true, out msg)) {
|
|
||||||
_logger.Error (msg);
|
_logger.Error (msg);
|
||||||
error ("An error has occurred in setting the compression.", null);
|
error ("An error has occurred in setting the compression.", null);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user