Fixed RemoveRegion by removing event handler and removing scene inside a lock

This commit is contained in:
Kevin Cozens
2017-04-16 17:36:17 -04:00
parent a4254be915
commit 63247aa640
@@ -92,7 +92,13 @@ namespace OpenSimSearch.Modules.OpenSearch
return;
scene.UnregisterModuleInterface<ISearchModule>(this);
m_Scenes.Remove(scene);
scene.EventManager.OnNewClient -= OnNewClient;
lock(m_Scenes)
{
m_Scenes.Remove(scene);
}
}
public void RegionLoaded(Scene scene)