OpenSim.Region.Framework.Scenes.SceneCommunicationService.SendCloseChildAgentAsync C# (CSharp) Method

SendCloseChildAgentAsync() protected method

This Closes child agents on neighboring regions Calls an asynchronous method to do so.. so it doesn't lag the sim.
protected SendCloseChildAgentAsync ( UUID agentID, ulong regionHandle ) : void
agentID UUID
regionHandle ulong
return void
        protected void SendCloseChildAgentAsync(UUID agentID, ulong regionHandle)
        {

            m_log.Debug("[INTERGRID]: Sending close agent to " + regionHandle);
            // let's do our best, but there's not much we can do if the neighbour doesn't accept.

            //m_commsProvider.InterRegion.TellRegionToCloseChildConnection(regionHandle, agentID);
            uint x = 0, y = 0;
            Utils.LongToUInts(regionHandle, out x, out y);
            GridRegion destination = m_scene.GridService.GetRegionByPosition(UUID.Zero, (int)x, (int)y);
            m_scene.SimulationService.CloseAgent(destination, agentID);
        }