Another bug fix

physics-inventorytesting
MW 2007-03-13 17:58:13 +00:00
parent d1475e8cc3
commit 05c6f7d498
1 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,10 @@ namespace LocalGridServers
public LocalAssetServer() public LocalAssetServer()
{ {
bool yapfile;
this._assetRequests = new BlockingQueue<ARequest>(); this._assetRequests = new BlockingQueue<ARequest>();
yapfile = System.IO.File.Exists("assets.yap");
ServerConsole.MainConsole.Instance.WriteLine("Local Asset Server class created"); ServerConsole.MainConsole.Instance.WriteLine("Local Asset Server class created");
try try
{ {
@ -87,7 +90,10 @@ namespace LocalGridServers
ServerConsole.MainConsole.Instance.WriteLine("Db4 Asset server :Constructor - Exception occured"); ServerConsole.MainConsole.Instance.WriteLine("Db4 Asset server :Constructor - Exception occured");
ServerConsole.MainConsole.Instance.WriteLine(e.ToString()); ServerConsole.MainConsole.Instance.WriteLine(e.ToString());
} }
if(!yapfile)
{
this.SetUpAssetDatabase(); this.SetUpAssetDatabase();
}
this._localAssetServerThread = new Thread(new ThreadStart(RunRequests)); this._localAssetServerThread = new Thread(new ThreadStart(RunRequests));
this._localAssetServerThread.IsBackground = true; this._localAssetServerThread.IsBackground = true;
this._localAssetServerThread.Start(); this._localAssetServerThread.Start();