mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Fix a regression where we stopped removing avatars from collision event reporting on logout, rather than stopping clearing their collision events.
This occurred in b18c8c8 (Thu May 17 2012).
This was a cause of very occasional race conditions and likely memory leakage as clients came and went from the region.
This commit is contained in:
@@ -1270,7 +1270,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
|
||||
public override void UnSubscribeEvents()
|
||||
{
|
||||
CollisionEventsThisFrame.Clear();
|
||||
_parent_scene.RemoveCollisionEventReporting(this);
|
||||
|
||||
// Don't clear collision event reporting here. This is called directly from scene code and so can lead
|
||||
// to a race condition with the simulate loop
|
||||
|
||||
Reference in New Issue
Block a user