CloseAgent() public method

public CloseAgent ( GridRegion destination, UUID id ) : bool
destination OpenSim.Services.Interfaces.GridRegion
id UUID
return bool
        public bool CloseAgent(GridRegion destination, UUID id, string auth_token)
        {
            if (destination == null)
            {
                return(false);
            }

            // Try local first
            if (m_localBackend.CloseAgent(destination, id, auth_token))
            {
                return(true);
            }

            // else do the remote thing
            if (!m_localBackend.IsLocalRegion(destination.RegionID))
            {
                return(m_remoteConnector.CloseAgent(destination, id, auth_token));
            }

            return(false);
        }