Changed the async approach on close child agents. This may improve crossings a little bit.
							parent
							
								
									99623894c7
								
							
						
					
					
						commit
						964ec57ffe
					
				| 
						 | 
				
			
			@ -204,13 +204,10 @@ namespace OpenSim.Region.Framework.Scenes
 | 
			
		|||
        /// <param name="regionslst"></param>
 | 
			
		||||
        public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst)
 | 
			
		||||
        {
 | 
			
		||||
            Util.FireAndForget(delegate
 | 
			
		||||
            foreach (ulong handle in regionslst)
 | 
			
		||||
            {
 | 
			
		||||
                foreach (ulong handle in regionslst)
 | 
			
		||||
                {
 | 
			
		||||
                    SendCloseChildAgent(agentID, handle);
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
                SendCloseChildAgent(agentID, handle);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
       
 | 
			
		||||
        public List<GridRegion> RequestNamedRegions(string name, int maxNumber)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2955,7 +2955,10 @@ namespace OpenSim.Region.Framework.Scenes
 | 
			
		|||
            if (byebyeRegions.Count > 0)
 | 
			
		||||
            {
 | 
			
		||||
                m_log.Debug("[SCENE PRESENCE]: Closing " + byebyeRegions.Count + " child agents");
 | 
			
		||||
                m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions);
 | 
			
		||||
                Util.FireAndForget(delegate 
 | 
			
		||||
                { 
 | 
			
		||||
                    m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions); 
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
            foreach (ulong handle in byebyeRegions)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue