mirror of
https://github.com/kcozens/OpenSimSearch.git
synced 2026-08-14 08:52:28 +00:00
Fixed RemoveRegion by removing event handler and removing scene inside a lock
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user