* Minor refactoring in OGS1InventoryService

0.6.0-stable
Justin Clarke Casey 2008-04-11 19:04:33 +00:00
parent 7bfd7e6f08
commit 8f345d36d8
1 changed files with 20 additions and 27 deletions

View File

@ -58,19 +58,7 @@ namespace OpenSim.Region.Communications.OGS1
{
InventoryRequest request = new InventoryRequest(userID, callback);
m_RequestingInventory.Add(userID, request);
RequestInventory(userID);
}
}
/// <summary>
/// Request the entire user's inventory (folders and items) from the inventory server.
///
/// XXX May want to change this so that we don't end up shuffling over data which might prove
/// entirely unnecessary.
/// </summary>
/// <param name="userID"></param>
private void RequestInventory(LLUUID userID)
{
try
{
m_log.InfoFormat(
@ -89,6 +77,11 @@ namespace OpenSim.Region.Communications.OGS1
e.Source, e.Message);
}
}
else
{
m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: RequestInventoryForUser() - could you not find user profile for {0}", userID);
}
}
/// <summary>
/// Callback used by the inventory server GetInventory request