[Modify] Replace it

This commit is contained in:
sta 2016-03-18 14:46:06 +09:00
parent b5294ef96c
commit 6da672a65e

View File

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