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.
0.7.3-extended
Justin Clark-Casey (justincc) 2012-06-29 00:36:50 +01:00
parent f49c850269
commit f690acbfb6
1 changed files with 1 additions and 1 deletions

View File

@ -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