diff options
author | Tedd Hansen | 2008-01-18 20:46:53 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-01-18 20:46:53 +0000 |
commit | 8fbac08fb57475312f6da4dec452d787eab34047 (patch) | |
tree | 7f37d276125fcd7a349d29e276d6a07ddf3ee3df /OpenSim/Region/Environment | |
parent | * Physics update to perhaps help people who have capsules that have capsized (diff) | |
download | opensim-SC-8fbac08fb57475312f6da4dec452d787eab34047.zip opensim-SC-8fbac08fb57475312f6da4dec452d787eab34047.tar.gz opensim-SC-8fbac08fb57475312f6da4dec452d787eab34047.tar.bz2 opensim-SC-8fbac08fb57475312f6da4dec452d787eab34047.tar.xz |
Added a mutex lock on loadAllLandObjectsFromStorage so maybe just MAYBE we can get rid of that annoying startup crash...
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 3a0e1b9..8374dcf 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -896,17 +896,21 @@ namespace OpenSim.Region.Environment.Scenes | |||
896 | 896 | ||
897 | #region Load Land | 897 | #region Load Land |
898 | 898 | ||
899 | private static readonly object _loadAllLAndMutex = new object(); | ||
899 | public void loadAllLandObjectsFromStorage() | 900 | public void loadAllLandObjectsFromStorage() |
900 | { | 901 | { |
901 | MainLog.Instance.Verbose("SCENE", "Loading land objects from storage"); | 902 | lock (_loadAllLAndMutex) |
902 | List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID); | ||
903 | if (landData.Count == 0) | ||
904 | { | 903 | { |
905 | m_LandManager.NoLandDataFromStorage(); | 904 | MainLog.Instance.Verbose("SCENE", "Loading land objects from storage"); |
906 | } | 905 | List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID); |
907 | else | 906 | if (landData.Count == 0) |
908 | { | 907 | { |
909 | m_LandManager.IncomingLandObjectsFromStorage(landData); | 908 | m_LandManager.NoLandDataFromStorage(); |
909 | } | ||
910 | else | ||
911 | { | ||
912 | m_LandManager.IncomingLandObjectsFromStorage(landData); | ||
913 | } | ||
910 | } | 914 | } |
911 | } | 915 | } |
912 | 916 | ||