From 6b7fb1712ce29301b8132c9d1f48ce14090a4727 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 7 Aug 2008 15:21:50 +0000 Subject: Mantis#1894. Thank you kindly, HomerHorwitz for a patch that: When a region is re-registered (e.g. because of region restart), it is removed from m_regions. If I understood that correctly, the old entry should be replaced, instead. --- OpenSim/Region/Communications/Local/LocalBackEndServices.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs index fa7a2de..f967cf7 100644 --- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs +++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs @@ -109,7 +109,8 @@ namespace OpenSim.Region.Communications.Local else { // Already in our list, so the region went dead and restarted. - m_regions.Remove(regionInfo.RegionHandle); + // replace the old regioninfo + m_regions[regionInfo.RegionHandle] = regionInfo; m_log.Warn("[INTERREGION STANDALONE]: Region registered twice. Region went down and came back up."); RegionCommsListener regionHost = new RegionCommsListener(); -- cgit v1.1