aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService
diff options
context:
space:
mode:
authoronefang2019-05-19 22:33:21 +1000
committeronefang2019-05-19 22:33:21 +1000
commitc01dd9a65981946703be7e3d551ffc9c4a394d02 (patch)
tree02782615ce5a3336152b7d0a387690a87b52c548 /OpenSim/Services/GridService
parentUpgrade sim height. (diff)
downloadopensim-SC-c01dd9a65981946703be7e3d551ffc9c4a394d02.zip
opensim-SC-c01dd9a65981946703be7e3d551ffc9c4a394d02.tar.gz
opensim-SC-c01dd9a65981946703be7e3d551ffc9c4a394d02.tar.bz2
opensim-SC-c01dd9a65981946703be7e3d551ffc9c4a394d02.tar.xz
Clean up maptile directory creation code.
Diffstat (limited to 'OpenSim/Services/GridService')
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs17
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index bd68056..4887232 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -145,17 +145,14 @@ namespace OpenSim.Services.GridService
145 145
146 m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); 146 m_log.Debug("[HYPERGRID LINKER]: Loaded all services...");
147 147
148 if (!string.IsNullOrEmpty(m_MapTileDirectory)) 148 try
149 { 149 {
150 try 150 Directory.CreateDirectory(m_MapTileDirectory);
151 { 151 }
152 Directory.CreateDirectory(m_MapTileDirectory); 152 catch (Exception e)
153 } 153 {
154 catch (Exception e) 154 m_log.WarnFormat("[HYPERGRID LINKER]: Could not create map tile storage directory {0}: {1}", m_MapTileDirectory, e);
155 { 155 m_MapTileDirectory = string.Empty;
156 m_log.WarnFormat("[HYPERGRID LINKER]: Could not create map tile storage directory {0}: {1}", m_MapTileDirectory, e);
157 m_MapTileDirectory = string.Empty;
158 }
159 } 156 }
160 157
161 if (MainConsole.Instance != null) 158 if (MainConsole.Instance != null)