Fixed some comparisons of LLUUIDs to null.

Thanks to DrSchofld for pointing this out.
This commit is contained in:
Jeff Ames
2008-03-19 09:36:13 +00:00
parent d135dad051
commit a0e1be3280
6 changed files with 13 additions and 19 deletions

View File

@@ -163,7 +163,7 @@ namespace OpenSim.Region.Environment.Modules
public LLUUID OpenXMLRPCChannel(uint localID, LLUUID itemID)
{
LLUUID channel = null;
LLUUID channel = new LLUUID();
//Is a dupe?
foreach (RPCChannelInfo ci in m_openChannels.Values)
@@ -176,7 +176,7 @@ namespace OpenSim.Region.Environment.Modules
}
}
if ((channel.Equals(null)) || (channel.Equals(LLUUID.Zero)))
if (channel == LLUUID.Zero)
{
channel = LLUUID.Random();
RPCChannelInfo rpcChanInfo = new RPCChannelInfo(localID, itemID, channel);