[Modify] Polish it

This commit is contained in:
sta 2016-11-01 15:52:05 +09:00
parent a0fa4b519b
commit f1d0586270

View File

@ -310,7 +310,6 @@ namespace WebSocketSharp
}
set {
lock (_forState) {
string msg;
if (!checkIfAvailable (true, false, true, false, false, true, out msg)) {
_logger.Error (msg);
@ -319,6 +318,14 @@ namespace WebSocketSharp
return;
}
lock (_forState) {
if (!checkIfAvailable (true, false, false, true, out msg)) {
_logger.Error (msg);
error ("An error has occurred in setting the compression.", null);
return;
}
_compression = value;
}
}