* Don't abort (and keep failing) the update if one Entity gives us an exception when we try to update it
* This doesn't remove bug 757, but does largely remove the worst consequences0.6.0-stable
parent
c310f2ab24
commit
b9ef6ed047
|
@ -217,14 +217,27 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Process all pending updates
|
||||
/// </summary>
|
||||
internal void ProcessUpdates()
|
||||
{
|
||||
lock (m_updateList)
|
||||
{
|
||||
for (int i = 0; i < m_updateList.Count; i++)
|
||||
{
|
||||
EntityBase entity = m_updateList[i];
|
||||
|
||||
// Don't abort the whole update if one entity happens to give us an exception.
|
||||
try
|
||||
{
|
||||
m_updateList[i].Update();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.ErrorFormat("[INNERSCENE]: Failed to update {0}, {1} - {2}", entity.Name, entity.m_uuid, e);
|
||||
}
|
||||
}
|
||||
m_updateList.Clear();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1288,7 +1288,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
if (m_restorePresences.ContainsKey(client.AgentId))
|
||||
{
|
||||
m_log.Info("REGION Restore Scene Presence");
|
||||
m_log.Info("[REGION]: Restore Scene Presence");
|
||||
|
||||
presence = m_restorePresences[client.AgentId];
|
||||
m_restorePresences.Remove(client.AgentId);
|
||||
|
@ -1304,7 +1304,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("REGION Add New Scene Presence");
|
||||
m_log.Info("[REGION]: Add New Scene Presence");
|
||||
|
||||
m_estateManager.sendRegionHandshake(client);
|
||||
|
||||
|
|
Loading…
Reference in New Issue