aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/AssetCache.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/AssetCache.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetCache.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs
index 99356c2..d1ff9c9 100644
--- a/OpenSim/Framework/Communications/Cache/AssetCache.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs
@@ -98,7 +98,12 @@ namespace OpenSim.Framework.Communications.Cache
98 } 98 }
99 } 99 }
100 100
101 public AssetBase GetAsset(LLUUID assetID) 101 /// <summary>
102 /// Only get an asset if we already have it in the cache.
103 /// </summary>
104 /// <param name="assetID"></param></param>
105 /// <returns></returns>
106 private AssetBase GetCachedAsset(LLUUID assetID)
102 { 107 {
103 AssetBase asset = null; 108 AssetBase asset = null;
104 if (Textures.ContainsKey(assetID)) 109 if (Textures.ContainsKey(assetID))
@@ -153,7 +158,7 @@ namespace OpenSim.Framework.Communications.Cache
153 158
154 public AssetBase GetAsset(LLUUID assetID, bool isTexture) 159 public AssetBase GetAsset(LLUUID assetID, bool isTexture)
155 { 160 {
156 AssetBase asset = GetAsset(assetID); 161 AssetBase asset = GetCachedAsset(assetID);
157 if (asset == null) 162 if (asset == null)
158 { 163 {
159 m_assetServer.RequestAsset(assetID, isTexture); 164 m_assetServer.RequestAsset(assetID, isTexture);
@@ -223,7 +228,7 @@ namespace OpenSim.Framework.Communications.Cache
223 228
224 public AssetBase CopyAsset(LLUUID assetID) 229 public AssetBase CopyAsset(LLUUID assetID)
225 { 230 {
226 AssetBase asset = GetAsset(assetID); 231 AssetBase asset = GetCachedAsset(assetID);
227 if (asset == null) 232 if (asset == null)
228 return null; 233 return null;
229 234