aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2007-12-19 18:05:45 +0000
committerJustin Clarke Casey2007-12-19 18:05:45 +0000
commit45567b71b8c3c6f2e52dacdda92671048bb3faf0 (patch)
tree97f6f09bfb255181cf1ae964f1ac09d61bc615c7 /OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
parentStopped module loader from re-loading .dll once for every plugin found within... (diff)
downloadopensim-SC_OLD-45567b71b8c3c6f2e52dacdda92671048bb3faf0.zip
opensim-SC_OLD-45567b71b8c3c6f2e52dacdda92671048bb3faf0.tar.gz
opensim-SC_OLD-45567b71b8c3c6f2e52dacdda92671048bb3faf0.tar.bz2
opensim-SC_OLD-45567b71b8c3c6f2e52dacdda92671048bb3faf0.tar.xz
Refactor asset request processing for consistent status information on whether an asset was actually found or not
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/SQLAssetServer.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/SQLAssetServer.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
index 010581f..4fa7684 100644
--- a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
+++ b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
@@ -77,21 +77,15 @@ namespace OpenSim.Framework.Communications.Cache
77 m_assetProviderPlugin.CommitAssets(); 77 m_assetProviderPlugin.CommitAssets();
78 } 78 }
79 79
80 protected override void ProcessRequest(AssetRequest req) 80 protected override AssetBase _ProcessRequest(AssetRequest req)
81 { 81 {
82 AssetBase asset; 82 AssetBase asset;
83 lock (syncLock) 83 lock (syncLock)
84 { 84 {
85 asset = m_assetProviderPlugin.FetchAsset(req.AssetID); 85 asset = m_assetProviderPlugin.FetchAsset(req.AssetID);
86 } 86 }
87 if (asset != null) 87
88 { 88 return asset;
89 _receiver.AssetReceived(asset, req.IsTexture);
90 }
91 else
92 {
93 _receiver.AssetNotFound(req.AssetID);
94 }
95 } 89 }
96 90
97 protected override void StoreAsset(AssetBase asset) 91 protected override void StoreAsset(AssetBase asset)