[Modify] Remove it

This commit is contained in:
sta 2017-06-02 14:38:00 +09:00
parent ee84df541e
commit 4aa9f58b16

View File

@ -420,20 +420,6 @@ namespace WebSocketSharp.Server
} }
} }
internal void Stop (CloseEventArgs e, bool send, bool receive)
{
lock (_sync) {
_state = ServerState.ShuttingDown;
var bytes = send ? WebSocketFrame.CreateCloseFrame (e.PayloadData, false).ToArray () : null;
foreach (var host in _hosts.Values)
host.Sessions.Stop (e, bytes, receive);
_hosts.Clear ();
_state = ServerState.Stop;
}
}
#endregion #endregion
#region Public Methods #region Public Methods