From ba8ff761c0f807e4963b0b5a2d4e0513b352b485 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 8 May 2008 04:47:38 +0000 Subject: * Reduced sleep durations in a number of files. --- OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index e8cc7d2..ea27346 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -268,12 +268,13 @@ namespace OpenSim.Framework.Communications.Cache // inventory failure. // // This is a crude way of dealing with that by retrying the lookup. + //BUG: This should be replaced with a async event. if (!userProfile.HasInventory) { int attempts = 5; while (attempts-- > 0) { - Thread.Sleep(3000); + Thread.Sleep(500); if (userProfile.HasInventory) { @@ -369,7 +370,7 @@ namespace OpenSim.Framework.Communications.Cache "[INVENTORY CACHE]: Poll number {0} for inventory items in folder {1} for user {2}", attempts, folderID, agentID); - Thread.Sleep(3000); + Thread.Sleep(500); if (userProfile.HasInventory) { -- cgit v1.1