[Modify] Replace it

This commit is contained in:
sta 2016-09-18 15:33:50 +09:00
parent 38d88e0ff8
commit 0ac294aff1

View File

@ -2439,13 +2439,7 @@ namespace WebSocketSharp
return; return;
} }
if (code == (ushort) CloseStatusCode.NoStatus) { closeAsync (code, null);
closeAsync (new CloseEventArgs (), true, true, false);
return;
}
var send = !code.IsReserved ();
closeAsync (new CloseEventArgs (code), send, send, false);
} }
/// <summary> /// <summary>