From c4f1ec1fd643ab3748235dfb89bc1e66165558f9 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 11 Jul 2013 10:21:20 -0700 Subject: [PATCH] Changed the UserProfileModule so that it's less greedy in terms of thread usage. --- .../Avatar/UserProfiles/UserProfileModule.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index 161f160ba3..c04098c26d 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs @@ -173,7 +173,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles if(obj.PresenceType == PresenceType.Npc) return; - GetImageAssets(((IScenePresence)obj).UUID); + Util.FireAndForget(delegate + { + GetImageAssets(((IScenePresence)obj).UUID); + }); } /// @@ -1044,12 +1047,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles { OSDString assetId = (OSDString)asset; - Scene.AssetService.Get(string.Format("{0}/{1}",assetServerURI, assetId.AsString()), this, - delegate (string assetID, Object s, AssetBase a) - { - // m_log.DebugFormat("[PROFILES]: Getting Image Assets {0}", assetID); - return; - }); + Scene.AssetService.Get(string.Format("{0}/{1}",assetServerURI, assetId.AsString())); } return true; }