[Modify] Replace it

This commit is contained in:
sta 2016-03-17 15:48:12 +09:00
parent 9f995bb1ae
commit b5294ef96c

View File

@ -2145,8 +2145,8 @@ namespace WebSocketSharp
/// </summary>
public void Close ()
{
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);