diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 9fea2a0..400f4c0 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1160,6 +1160,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1160 | //m_heartbeatTimer.Elapsed += new ElapsedEventHandler(Heartbeat); | 1160 | //m_heartbeatTimer.Elapsed += new ElapsedEventHandler(Heartbeat); |
1161 | if (HeartbeatThread != null) | 1161 | if (HeartbeatThread != null) |
1162 | { | 1162 | { |
1163 | m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName); | ||
1163 | HeartbeatThread.Abort(); | 1164 | HeartbeatThread.Abort(); |
1164 | HeartbeatThread = null; | 1165 | HeartbeatThread = null; |
1165 | } | 1166 | } |
@@ -2442,7 +2443,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2442 | return false; | 2443 | return false; |
2443 | } | 2444 | } |
2444 | 2445 | ||
2445 | newObject.RootPart.ParentGroup.CreateScriptInstances(0, false, DefaultScriptEngine, 1); | 2446 | newObject.RootPart.ParentGroup.CreateScriptInstances(0, false, DefaultScriptEngine, 2); |
2446 | 2447 | ||
2447 | newObject.ResumeScripts(); | 2448 | newObject.ResumeScripts(); |
2448 | 2449 | ||
@@ -4555,7 +4556,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4555 | // | 4556 | // |
4556 | int health=1; // Start at 1, means we're up | 4557 | int health=1; // Start at 1, means we're up |
4557 | 4558 | ||
4558 | if ((Util.EnvironmentTickCountSubtract(m_lastUpdate)) < 1000) | 4559 | if (m_firstHeartbeat || ((Util.EnvironmentTickCountSubtract(m_lastUpdate)) < 1000)) |
4559 | health+=1; | 4560 | health+=1; |
4560 | else | 4561 | else |
4561 | return health; | 4562 | return health; |
@@ -5067,7 +5068,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
5067 | { | 5068 | { |
5068 | ForEachSOG(delegate (SceneObjectGroup grp) | 5069 | ForEachSOG(delegate (SceneObjectGroup grp) |
5069 | { | 5070 | { |
5070 | if (grp.RootPart.Shape.State != 0 && (!objectsToDelete.Contains(grp))) | 5071 | if (grp.RootPart.Shape.PCode == 0 && grp.RootPart.Shape.State != 0 && (!objectsToDelete.Contains(grp))) |
5071 | { | 5072 | { |
5072 | UUID agentID = grp.OwnerID; | 5073 | UUID agentID = grp.OwnerID; |
5073 | if (agentID == UUID.Zero) | 5074 | if (agentID == UUID.Zero) |