mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Thank you kindly, MattSetzer, for a patch that solves a Mantis:
This appears to be due to the fact that no asset cache has been configured, possibly as a result of the configuration changes that have been made recently. I've attached a patch to display a message to that effect rather than throwing an error.
This commit is contained in:
@@ -413,7 +413,14 @@ namespace OpenSim
|
||||
|
||||
private void HandleClearAssets(string module, string[] args)
|
||||
{
|
||||
m_assetCache.Clear();
|
||||
if (AssetCache != null)
|
||||
{
|
||||
AssetCache.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("Asset cache is not configured.");
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleForceUpdate(string module, string[] args)
|
||||
@@ -787,7 +794,14 @@ namespace OpenSim
|
||||
switch (showParams[0])
|
||||
{
|
||||
case "assets":
|
||||
m_assetCache.ShowState();
|
||||
if (AssetCache != null)
|
||||
{
|
||||
AssetCache.ShowState();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("Asset cache is not configured.");
|
||||
}
|
||||
break;
|
||||
|
||||
case "users":
|
||||
|
||||
Reference in New Issue
Block a user