mantis 8890: waste CPU checking if asset id == Zero on get; several changes on region Asset connector

This commit is contained in:
UbitUmarov
2021-05-29 15:08:22 +01:00
parent 5c99e94b79
commit a23bf4eb1b
8 changed files with 158 additions and 90 deletions

View File

@@ -167,9 +167,7 @@ namespace OpenSim.Services.AssetService
{
//m_log.DebugFormat("[XASSET SERVICE]: Get asset async {0}", id);
UUID assetID;
if (!UUID.TryParse(id, out assetID))
if (!UUID.TryParse(id, out UUID assetID) || assetID == UUID.Zero)
return false;
AssetBase asset = Get(id);