mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user