* In our quest for sim heartbeat stats, we're a touch closer to accurate object count on sim stats.
* Fixed a rare, but possible NullReferenceExceptionafrisby
parent
47b091f663
commit
5e6483f209
|
@ -870,7 +870,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
SceneObjectGroup copy = originPrim.Copy(AgentID, GroupID);
|
||||
copy.AbsolutePosition = copy.AbsolutePosition + offset;
|
||||
Entities.Add(copy.UUID, copy);
|
||||
|
||||
m_numPrim++;
|
||||
copy.ScheduleGroupForFullUpdate();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -518,6 +518,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
lock (Entities)
|
||||
{
|
||||
Entities.Remove(group.UUID);
|
||||
m_innerScene.RemoveAPrimCount();
|
||||
}
|
||||
group.DeleteParts();
|
||||
}
|
||||
|
|
|
@ -966,7 +966,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
// subscribe to physics events.
|
||||
rootPart.DoPhysicsPropertyUpdate(UsePhysics, true);
|
||||
}
|
||||
m_innerScene.AddAPrimCount();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1162,10 +1161,9 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
/// <param name="agentID"></param>
|
||||
public override void RemoveClient(LLUUID agentID)
|
||||
{
|
||||
m_eventManager.TriggerOnRemovePresence(agentID);
|
||||
|
||||
ScenePresence avatar = GetScenePresence(agentID);
|
||||
|
||||
try
|
||||
{
|
||||
if (avatar.IsChildAgent)
|
||||
{
|
||||
m_innerScene.removeUserCount(false);
|
||||
|
@ -1174,7 +1172,13 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
m_innerScene.removeUserCount(true);
|
||||
}
|
||||
|
||||
}
|
||||
catch (System.NullReferenceException)
|
||||
{
|
||||
// We don't know which count to remove it from
|
||||
// Avatar is already disposed :/
|
||||
}
|
||||
m_eventManager.TriggerOnRemovePresence(agentID);
|
||||
Broadcast(delegate(IClientAPI client)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue