diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs index b778389..0ced2f9 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | |||
@@ -174,7 +174,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
174 | 174 | ||
175 | return nodesLoaded; | 175 | return nodesLoaded; |
176 | } | 176 | } |
177 | 177 | ||
178 | public void Close() | ||
179 | { | ||
180 | if (m_loadStream != null) | ||
181 | m_loadStream.Close(); | ||
182 | } | ||
183 | |||
178 | /// <summary> | 184 | /// <summary> |
179 | /// Replicate the inventory paths in the archive to the user's inventory as necessary. | 185 | /// Replicate the inventory paths in the archive to the user's inventory as necessary. |
180 | /// </summary> | 186 | /// </summary> |
@@ -258,6 +264,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
258 | = rawDirsToCreate[i].LastIndexOf( | 264 | = rawDirsToCreate[i].LastIndexOf( |
259 | ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR); | 265 | ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR); |
260 | 266 | ||
267 | if (identicalNameIdentifierIndex < 0) | ||
268 | { | ||
269 | i++; | ||
270 | continue; | ||
271 | } | ||
261 | string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex); | 272 | string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex); |
262 | 273 | ||
263 | newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName); | 274 | newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName); |