Lock the object queue when dequeueing
parent
f8e2d25739
commit
c900134f91
|
@ -66,6 +66,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendPrimUpdates()
|
public void SendPrimUpdates()
|
||||||
|
{
|
||||||
|
lock(m_pendingObjects)
|
||||||
{
|
{
|
||||||
if (m_pendingObjects == null)
|
if (m_pendingObjects == null)
|
||||||
{
|
{
|
||||||
|
@ -117,9 +119,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if ((update.LastFullUpdateTime < part.TimeStampFull) ||
|
if ((update.LastFullUpdateTime < part.TimeStampFull) ||
|
||||||
part.IsAttachment)
|
part.IsAttachment)
|
||||||
{
|
{
|
||||||
// m_log.DebugFormat(
|
// m_log.DebugFormat(
|
||||||
// "[SCENE PRESENCE]: Fully updating prim {0}, {1} - part timestamp {2}",
|
// "[SCENE PRESENCE]: Fully updating prim {0}, {1} - part timestamp {2}",
|
||||||
// part.Name, part.UUID, part.TimeStampFull);
|
// part.Name, part.UUID, part.TimeStampFull);
|
||||||
|
|
||||||
part.SendFullUpdate(m_presence.ControllingClient,
|
part.SendFullUpdate(m_presence.ControllingClient,
|
||||||
m_presence.GenerateClientFlags(part.UUID));
|
m_presence.GenerateClientFlags(part.UUID));
|
||||||
|
@ -136,9 +138,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
else if (update.LastTerseUpdateTime <= part.TimeStampTerse)
|
else if (update.LastTerseUpdateTime <= part.TimeStampTerse)
|
||||||
{
|
{
|
||||||
// m_log.DebugFormat(
|
// m_log.DebugFormat(
|
||||||
// "[SCENE PRESENCE]: Tersely updating prim {0}, {1} - part timestamp {2}",
|
// "[SCENE PRESENCE]: Tersely updating prim {0}, {1} - part timestamp {2}",
|
||||||
// part.Name, part.UUID, part.TimeStampTerse);
|
// part.Name, part.UUID, part.TimeStampTerse);
|
||||||
|
|
||||||
part.SendTerseUpdateToClient(m_presence.ControllingClient);
|
part.SendTerseUpdateToClient(m_presence.ControllingClient);
|
||||||
|
|
||||||
|
@ -169,6 +171,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Reset()
|
public void Reset()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue