// Close stops the server.
//
// It must not be called before or concurrently with Start.
Close stops the server.

It must not be called before or concurrently with Start.
// Close stops the server . // // It must not be called before or concurrently with Start .
func (s *Server) Close() error {
	s.shutdownCancel()
	s.lb.Shutdown()
	s.linkMon.Close()
	s.localAPIListener.Close()
	s.mu.Lock()
	defer s.mu.Unlock()
	for _, ln := range s.listeners {
		ln.Close()
	}
	s.listeners = nil
	return nil
}
func ( s * Server ) Close ( ) error { s . shutdownCancel ( ) s . lb . Shutdown ( ) s . linkMon . Close ( ) s . localAPIListener . Close ( ) s . mu . Lock ( ) defer s . mu . Unlock ( ) for _ , ln := range s . listeners { ln . Close ( ) } s . listeners = nil return nil }
Close stops the server.
Close stops the server .