Refactored a few for WebSocketServiceHost.cs

This commit is contained in:
sta 2015-08-18 13:05:22 +09:00
parent 009ca2d701
commit 170977586a

View File

@ -41,7 +41,7 @@ namespace WebSocketSharp.Server
{ {
/// <summary> /// <summary>
/// Exposes the methods and properties used to access the information in a WebSocket service /// Exposes the methods and properties used to access the information in a WebSocket service
/// provided by the <see cref="HttpServer"/> or <see cref="WebSocketServer"/>. /// provided by the <see cref="WebSocketServer"/> or <see cref="HttpServer"/>.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// The WebSocketServiceHost class is an abstract class. /// The WebSocketServiceHost class is an abstract class.
@ -131,7 +131,6 @@ namespace WebSocketSharp.Server
internal void Stop (ushort code, string reason) internal void Stop (ushort code, string reason)
{ {
var e = new CloseEventArgs (code, reason); var e = new CloseEventArgs (code, reason);
var send = !code.IsReserved (); var send = !code.IsReserved ();
var bytes = var bytes =
send ? WebSocketFrame.CreateCloseFrame (e.PayloadData, false).ToByteArray () : null; send ? WebSocketFrame.CreateCloseFrame (e.PayloadData, false).ToByteArray () : null;