private static void Stop() { if (m_server != null && m_server.IsRunning) { m_server.StopServer(); } if (m_serverExtenderForm != null && m_serverExtenderForm.Visible == true) { m_serverExtenderForm.Close(); } }
private static void Stop( ) { if (_server != null && _server.IsRunning) { _server.StopServer( ); } if (_serverExtenderForm != null && _serverExtenderForm.Visible) { _serverExtenderForm.Close( ); } if (_server.ServerThread != null) { _server.ServerThread.Join(20000); } }