Patch from Michael Osias IBM (jimbo2120)

In his own words: 
If a prim becomes a listener or remote channel and the script is deleted, it cannot become a listener or channel again with a new script.  
This patch fixes that.
This commit is contained in:
Justin Clarke Casey
2008-02-18 11:14:53 +00:00
parent 5fb1809384
commit 1cbef0b908
5 changed files with 50 additions and 0 deletions

View File

@@ -188,6 +188,24 @@ namespace OpenSim.Region.Environment.Modules
return channel;
}
public void DeleteChannel(LLUUID itemID)
{
foreach (RPCChannelInfo li in m_openChannels.Values)
{
if (li.GetItemID().Equals(itemID))
{
m_openChannels.Remove(li.GetChannelID());
return;
}
}
}
/**********************************************
* Remote Data Reply
*
@@ -408,5 +426,6 @@ namespace OpenSim.Region.Environment.Modules
{
return m_localID;
}
}
}