mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
mantis 8890: waste CPU checking if asset id == Zero on get; several changes on region Asset connector
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user