diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneViewer.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneViewer.cs b/OpenSim/Region/Framework/Scenes/SceneViewer.cs index 4e542b8..42966b1 100644 --- a/OpenSim/Region/Framework/Scenes/SceneViewer.cs +++ b/OpenSim/Region/Framework/Scenes/SceneViewer.cs | |||
@@ -189,10 +189,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
189 | 189 | ||
190 | public void Reset() | 190 | public void Reset() |
191 | { | 191 | { |
192 | lock (m_pendingObjects) | 192 | if (m_pendingObjects != null) |
193 | { | 193 | { |
194 | m_pendingObjects.Clear(); | 194 | lock (m_pendingObjects) |
195 | m_pendingObjects = null; | 195 | { |
196 | |||
197 | m_pendingObjects.Clear(); | ||
198 | m_pendingObjects = null; | ||
199 | } | ||
196 | } | 200 | } |
197 | } | 201 | } |
198 | 202 | ||