diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs index 99ec9b4..076fbce 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs | |||
@@ -72,7 +72,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
72 | /// </summary> | 72 | /// </summary> |
73 | protected IAssetCache m_assetCache; | 73 | protected IAssetCache m_assetCache; |
74 | 74 | ||
75 | protected internal AssetsRequest(ICollection<UUID> uuids, IAssetCache assetCache, AssetsRequestCallback assetsRequestCallback) | 75 | protected internal AssetsRequest( |
76 | ICollection<UUID> uuids, IAssetCache assetCache, AssetsRequestCallback assetsRequestCallback) | ||
76 | { | 77 | { |
77 | m_uuids = uuids; | 78 | m_uuids = uuids; |
78 | m_assetsRequestCallback = assetsRequestCallback; | 79 | m_assetsRequestCallback = assetsRequestCallback; |
@@ -100,9 +101,14 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
100 | public void AssetRequestCallback(UUID assetID, AssetBase asset) | 101 | public void AssetRequestCallback(UUID assetID, AssetBase asset) |
101 | { | 102 | { |
102 | if (asset != null) | 103 | if (asset != null) |
103 | m_assets[assetID] = asset; | 104 | { |
105 | m_assetCache.ExpireAsset(assetID); | ||
106 | m_assets[assetID] = asset; | ||
107 | } | ||
104 | else | 108 | else |
109 | { | ||
105 | m_notFoundAssetUuids.Add(assetID); | 110 | m_notFoundAssetUuids.Add(assetID); |
111 | } | ||
106 | 112 | ||
107 | //m_log.DebugFormat( | 113 | //m_log.DebugFormat( |
108 | // "[ARCHIVER]: Received {0} assets and notification of {1} missing assets", m_assets.Count, m_notFoundAssetUuids.Count); | 114 | // "[ARCHIVER]: Received {0} assets and notification of {1} missing assets", m_assets.Count, m_notFoundAssetUuids.Count); |