[libopenmetaverse] r3596 committed - Check that we have caps before sending request

0 views
Skip to first unread message

libopenm...@googlecode.com

unread,
Dec 3, 2011, 12:15:43 PM12/3/11
to libomv-...@googlegroups.com
Revision: 3596
Author: latifer
Date: Sat Dec 3 09:14:53 2011
Log: Check that we have caps before sending request
http://code.google.com/p/libopenmetaverse/source/detail?r=3596

Modified:
/libopenmetaverse/trunk/OpenMetaverse/ParcelManager.cs

=======================================
--- /libopenmetaverse/trunk/OpenMetaverse/ParcelManager.cs Sun Aug 14
04:54:08 2011
+++ /libopenmetaverse/trunk/OpenMetaverse/ParcelManager.cs Sat Dec 3
09:14:53 2011
@@ -1546,6 +1546,9 @@
/// <returns>If successful UUID of the remote parcel, UUID.Zero
otherwise</returns>
public UUID RequestRemoteParcelID(Vector3 location, ulong
regionHandle, UUID regionID)
{
+ if (Client.Network.CurrentSim == null ||
Client.Network.CurrentSim.Caps == null)
+ return UUID.Zero;
+
Uri url =
Client.Network.CurrentSim.Caps.CapabilityURI("RemoteParcelRequest");

if (url != null)

Reply all
Reply to author
Forward
0 new messages