diff options
author | onefang | 2019-05-19 22:33:21 +1000 |
---|---|---|
committer | onefang | 2019-05-19 22:33:21 +1000 |
commit | c01dd9a65981946703be7e3d551ffc9c4a394d02 (patch) | |
tree | 02782615ce5a3336152b7d0a387690a87b52c548 /OpenSim/Services | |
parent | Upgrade sim height. (diff) | |
download | opensim-SC_OLD-c01dd9a65981946703be7e3d551ffc9c4a394d02.zip opensim-SC_OLD-c01dd9a65981946703be7e3d551ffc9c4a394d02.tar.gz opensim-SC_OLD-c01dd9a65981946703be7e3d551ffc9c4a394d02.tar.bz2 opensim-SC_OLD-c01dd9a65981946703be7e3d551ffc9c4a394d02.tar.xz |
Clean up maptile directory creation code.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 17 |
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) |