[Modify] Add it

master
sta 9 years ago
parent f3ed3e27d7
commit 81530bbf56

@ -356,6 +356,19 @@ namespace WebSocketSharp.Server
}
}
internal void Stop (ushort code, string reason)
{
lock (_sync) {
_state = ServerState.ShuttingDown;
foreach (var host in _hosts.Values)
host.Stop (code, reason);
_hosts.Clear ();
_state = ServerState.Stop;
}
}
internal void Stop (CloseEventArgs e, bool send, bool receive)
{
lock (_sync) {

Loading…
Cancel
Save