[Modify] Polish it
This commit is contained in:
parent
7f87e8dfb5
commit
68a46b073b
@ -794,22 +794,22 @@ namespace WebSocketSharp
|
|||||||
message = null;
|
message = null;
|
||||||
|
|
||||||
if (!connecting && _readyState == WebSocketState.Connecting) {
|
if (!connecting && _readyState == WebSocketState.Connecting) {
|
||||||
message = "This operation isn't available in: connecting";
|
message = "This operation is not available in: connecting";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!open && _readyState == WebSocketState.Open) {
|
if (!open && _readyState == WebSocketState.Open) {
|
||||||
message = "This operation isn't available in: open";
|
message = "This operation is not available in: open";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!closing && _readyState == WebSocketState.Closing) {
|
if (!closing && _readyState == WebSocketState.Closing) {
|
||||||
message = "This operation isn't available in: closing";
|
message = "This operation is not available in: closing";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!closed && _readyState == WebSocketState.Closed) {
|
if (!closed && _readyState == WebSocketState.Closed) {
|
||||||
message = "This operation isn't available in: closed";
|
message = "This operation is not available in: closed";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user