diff options
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) |