Changed the UserProfileModule so that it's less greedy in terms of thread usage.
parent
ea371a6f54
commit
c4f1ec1fd6
|
@ -173,7 +173,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
if(obj.PresenceType == PresenceType.Npc)
|
if(obj.PresenceType == PresenceType.Npc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Util.FireAndForget(delegate
|
||||||
|
{
|
||||||
GetImageAssets(((IScenePresence)obj).UUID);
|
GetImageAssets(((IScenePresence)obj).UUID);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1044,12 +1047,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
{
|
{
|
||||||
OSDString assetId = (OSDString)asset;
|
OSDString assetId = (OSDString)asset;
|
||||||
|
|
||||||
Scene.AssetService.Get(string.Format("{0}/{1}",assetServerURI, assetId.AsString()), this,
|
Scene.AssetService.Get(string.Format("{0}/{1}",assetServerURI, assetId.AsString()));
|
||||||
delegate (string assetID, Object s, AssetBase a)
|
|
||||||
{
|
|
||||||
// m_log.DebugFormat("[PROFILES]: Getting Image Assets {0}", assetID);
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue