// Close closes the vici session.
Close closes the vici session.
// Close closes the vici session .
func (s *Session) Close() error {
	if err := s.el.Close(); err != nil {
		return err
	}
	s.mu.Lock()
	if s.ctr != nil {
		if err := s.ctr.conn.Close(); err != nil {
			return err
		}
		s.ctr = nil
	}
	s.mu.Unlock()
	return nil
}
func ( s * Session ) Close ( ) error { if err := s . el . Close ( ) ; err != nil { return err } s . mu . Lock ( ) if s . ctr != nil { if err := s . ctr . conn . Close ( ) ; err != nil { return err } s . ctr = nil } s . mu . Unlock ( ) return nil }
Close closes the vici session.
Close closes the vici session .