diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index f548296..90e2fcd 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -39,14 +39,12 @@ using OpenSim.Framework.Communications; | |||
39 | using OpenSim.Framework.Communications.Cache; | 39 | using OpenSim.Framework.Communications.Cache; |
40 | using log4net; | 40 | using log4net; |
41 | 41 | ||
42 | |||
43 | namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | 42 | namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver |
44 | { | 43 | { |
45 | public class InventoryArchiveWriteRequest | 44 | public class InventoryArchiveWriteRequest |
46 | { | 45 | { |
47 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 46 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
48 | 47 | ||
49 | protected Scene scene; | ||
50 | protected TarArchiveWriter archive; | 48 | protected TarArchiveWriter archive; |
51 | protected CommunicationsManager commsManager; | 49 | protected CommunicationsManager commsManager; |
52 | Dictionary<UUID, int> assetUuids; | 50 | Dictionary<UUID, int> assetUuids; |
@@ -56,9 +54,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
56 | /// </value> | 54 | /// </value> |
57 | private string m_savePath; | 55 | private string m_savePath; |
58 | 56 | ||
59 | public InventoryArchiveWriteRequest(Scene currentScene, CommunicationsManager commsManager) | 57 | public InventoryArchiveWriteRequest(CommunicationsManager commsManager) |
60 | { | 58 | { |
61 | scene = currentScene; | ||
62 | archive = new TarArchiveWriter(); | 59 | archive = new TarArchiveWriter(); |
63 | this.commsManager = commsManager; | 60 | this.commsManager = commsManager; |
64 | assetUuids = new Dictionary<UUID, int>(); | 61 | assetUuids = new Dictionary<UUID, int>(); |
@@ -241,7 +238,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
241 | saveInvDir(inventoryFolder, ""); | 238 | saveInvDir(inventoryFolder, ""); |
242 | } | 239 | } |
243 | 240 | ||
244 | new AssetsRequest(assetUuids.Keys, scene.AssetCache, ReceivedAllAssets).Execute(); | 241 | new AssetsRequest(assetUuids.Keys, commsManager.AssetCache, ReceivedAllAssets).Execute(); |
245 | } | 242 | } |
246 | } | 243 | } |
247 | } | 244 | } |