* Mjnor: Clarified comment to ensure that people are aware of how to end the recursive calls

0.6.2-post-fixes
Teravus Ovares 2009-01-06 01:10:26 +00:00
parent 4f0bbf5d61
commit df82eaf8a8
1 changed files with 9 additions and 1 deletions

View File

@ -419,8 +419,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
/// <summary> /// <summary>
/// Recursive SendGridInstantMessage over XMLRPC method. /// Recursive SendGridInstantMessage over XMLRPC method.
/// This is called from within a dedicated thread.
/// The first time this is called, prevRegionHandle will be 0 Subsequent times this is called from
/// itself, prevRegionHandle will be the last region handle that we tried to send.
/// If the handles are the same, we look up the user's location using the grid.
/// If the handles are still the same, we end. The send failed.
/// </summary> /// </summary>
/// <param name="prevRegionHandle"></param> /// <param name="prevRegionHandle">
/// Pass in 0 the first time this method is called. It will be called recursively with the last
/// regionhandle tried
/// </param>
protected virtual void SendGridInstantMessageViaXMLRPCAsync(GridInstantMessage im, MessageResultNotification result, ulong prevRegionHandle) protected virtual void SendGridInstantMessageViaXMLRPCAsync(GridInstantMessage im, MessageResultNotification result, ulong prevRegionHandle)
{ {
UUID toAgentID = new UUID(im.toAgentID); UUID toAgentID = new UUID(im.toAgentID);