aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
diff options
context:
space:
mode:
authorlbsa712007-10-19 08:57:30 +0000
committerlbsa712007-10-19 08:57:30 +0000
commit656c72befc1d1b3d2aa29c09dd8f75ee2ef5ef8a (patch)
treec79aa6b2736c05ca2e395b53e83bbfd54e23431b /OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
parentchanged the RegionID config name (that loaded from the region.xml files back ... (diff)
downloadopensim-SC-656c72befc1d1b3d2aa29c09dd8f75ee2ef5ef8a.zip
opensim-SC-656c72befc1d1b3d2aa29c09dd8f75ee2ef5ef8a.tar.gz
opensim-SC-656c72befc1d1b3d2aa29c09dd8f75ee2ef5ef8a.tar.bz2
opensim-SC-656c72befc1d1b3d2aa29c09dd8f75ee2ef5ef8a.tar.xz
* some more refactoring + bugfix
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/SQLAssetServer.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/SQLAssetServer.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
index cf54b81..379d609 100644
--- a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
+++ b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
@@ -44,11 +44,6 @@ namespace OpenSim.Framework.Communications.Cache
44 { 44 {
45 _assetRequests = new BlockingQueue<ARequest>(); 45 _assetRequests = new BlockingQueue<ARequest>();
46 AddPlugin(pluginName); 46 AddPlugin(pluginName);
47
48 this._localAssetServerThread = new Thread(new ThreadStart(RunRequests));
49 this._localAssetServerThread.IsBackground = true;
50 this._localAssetServerThread.Start();
51
52 } 47 }
53 48
54 public SQLAssetServer(IAssetProvider assetProvider) 49 public SQLAssetServer(IAssetProvider assetProvider)
@@ -86,12 +81,13 @@ namespace OpenSim.Framework.Communications.Cache
86 81
87 public override void Close() 82 public override void Close()
88 { 83 {
84 base.Close();
85
89 m_assetProviderPlugin.CommitAssets(); 86 m_assetProviderPlugin.CommitAssets();
90 } 87 }
91 88
92 private void RunRequests() 89 override protected void RunRequests()
93 { 90 {
94
95 while (true) 91 while (true)
96 { 92 {
97 ARequest req = this._assetRequests.Dequeue(); 93 ARequest req = this._assetRequests.Dequeue();