@ -2297,8 +2297,8 @@ namespace WebSocketSharp
/// </remarks>
public void CloseAsync ()
{
var msg = _readyState.CheckIfAvailable (true, true, false, false);
if (msg != null) {
string msg;
if (!checkIfAvailable (true, true, false, false, out msg)) {
_logger.Error (msg);
error ("An error has occurred in closing the connection.", null);