From 656c72befc1d1b3d2aa29c09dd8f75ee2ef5ef8a Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 19 Oct 2007 08:57:30 +0000 Subject: * some more refactoring + bugfix --- OpenSim/Framework/Communications/Cache/SQLAssetServer.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache/SQLAssetServer.cs') 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 { _assetRequests = new BlockingQueue(); AddPlugin(pluginName); - - this._localAssetServerThread = new Thread(new ThreadStart(RunRequests)); - this._localAssetServerThread.IsBackground = true; - this._localAssetServerThread.Start(); - } public SQLAssetServer(IAssetProvider assetProvider) @@ -86,12 +81,13 @@ namespace OpenSim.Framework.Communications.Cache public override void Close() { + base.Close(); + m_assetProviderPlugin.CommitAssets(); } - private void RunRequests() + override protected void RunRequests() { - while (true) { ARequest req = this._assetRequests.Dequeue(); -- cgit v1.1