[Modify] Polish it

This commit is contained in:
sta 2016-09-14 15:24:21 +09:00
parent 7f87e8dfb5
commit 68a46b073b

View File

@ -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;
} }