[Modify] Add it

This commit is contained in:
sta 2017-01-15 15:55:40 +09:00
parent f3ed3e27d7
commit 81530bbf56

View File

@ -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) {