aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorSean Dague2007-12-11 22:20:22 +0000
committerSean Dague2007-12-11 22:20:22 +0000
commitc7f5a9476373260af44154103e488830f9f25bb4 (patch)
treebb76592096de4b8129c0729811d0f47acfe4f381 /OpenSim/Region/Environment/Scenes
parentdebug to catch any users of the stop interface (diff)
downloadopensim-SC-c7f5a9476373260af44154103e488830f9f25bb4.zip
opensim-SC-c7f5a9476373260af44154103e488830f9f25bb4.tar.gz
opensim-SC-c7f5a9476373260af44154103e488830f9f25bb4.tar.bz2
opensim-SC-c7f5a9476373260af44154103e488830f9f25bb4.tar.xz
put in a try block to catch the ForEach loop dying.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 5febce6..fef02f0 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1898,9 +1898,13 @@ namespace OpenSim.Region.Environment.Scenes
1898 // We don't want to try to send messages if there are no avatar. 1898 // We don't want to try to send messages if there are no avatar.
1899 if (!(m_scenePresences.Equals(null))) 1899 if (!(m_scenePresences.Equals(null)))
1900 { 1900 {
1901 foreach (ScenePresence presence in m_scenePresences.Values) 1901 try {
1902 { 1902 foreach (ScenePresence presence in m_scenePresences.Values)
1903 action(presence); 1903 {
1904 action(presence);
1905 }
1906 } catch (Exception e) {
1907 MainLog.Instance.Verbose("BUG", e.ToString());
1904 } 1908 }
1905 } 1909 }
1906 } 1910 }