aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache
diff options
context:
space:
mode:
authorAdam Frisby2008-05-08 04:47:38 +0000
committerAdam Frisby2008-05-08 04:47:38 +0000
commitba8ff761c0f807e4963b0b5a2d4e0513b352b485 (patch)
tree2d39614693cad7efc78a2276c915ac91757f109e /OpenSim/Framework/Communications/Cache
parent* Some refactorings. (diff)
downloadopensim-SC-ba8ff761c0f807e4963b0b5a2d4e0513b352b485.zip
opensim-SC-ba8ff761c0f807e4963b0b5a2d4e0513b352b485.tar.gz
opensim-SC-ba8ff761c0f807e4963b0b5a2d4e0513b352b485.tar.bz2
opensim-SC-ba8ff761c0f807e4963b0b5a2d4e0513b352b485.tar.xz
* Reduced sleep durations in a number of files.
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs5
1 files changed, 3 insertions, 2 deletions
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
268 // inventory failure. 268 // inventory failure.
269 // 269 //
270 // This is a crude way of dealing with that by retrying the lookup. 270 // This is a crude way of dealing with that by retrying the lookup.
271 //BUG: This should be replaced with a async event.
271 if (!userProfile.HasInventory) 272 if (!userProfile.HasInventory)
272 { 273 {
273 int attempts = 5; 274 int attempts = 5;
274 while (attempts-- > 0) 275 while (attempts-- > 0)
275 { 276 {
276 Thread.Sleep(3000); 277 Thread.Sleep(500);
277 278
278 if (userProfile.HasInventory) 279 if (userProfile.HasInventory)
279 { 280 {
@@ -369,7 +370,7 @@ namespace OpenSim.Framework.Communications.Cache
369 "[INVENTORY CACHE]: Poll number {0} for inventory items in folder {1} for user {2}", 370 "[INVENTORY CACHE]: Poll number {0} for inventory items in folder {1} for user {2}",
370 attempts, folderID, agentID); 371 attempts, folderID, agentID);
371 372
372 Thread.Sleep(3000); 373 Thread.Sleep(500);
373 374
374 if (userProfile.HasInventory) 375 if (userProfile.HasInventory)
375 { 376 {