aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneViewer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneViewer.cs b/OpenSim/Region/Framework/Scenes/SceneViewer.cs
index 9ad80b8..50e1e39 100644
--- a/OpenSim/Region/Framework/Scenes/SceneViewer.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneViewer.cs
@@ -231,7 +231,8 @@ namespace OpenSim.Region.Framework.Scenes
231 public int GetPendingObjectsCount() 231 public int GetPendingObjectsCount()
232 { 232 {
233 if (m_pendingObjects != null) 233 if (m_pendingObjects != null)
234 return m_pendingObjects.Count; 234 lock (m_pendingObjects)
235 return m_pendingObjects.Count;
235 236
236 return 0; 237 return 0;
237 } 238 }