示例#1
0
        // Called immediately before the region module is unloaded. Cleanup
        // the region.

        public void Close()
        {
            if (!enabled)
            {
                return;
            }

            if (region == null)
            {
                return;
            }

            region.Close();

            if (m_regions.Contains(region))
            {
                lock (m_regions) m_regions.Remove(region);
            }
        }
        public void RemoveRegion(Scene scene)
        {
            if (!Enabled)
            {
                return;
            }

            if (m_region == null)
            {
                return;
            }

            if (!String.IsNullOrEmpty(m_password))
            {
                MainServer.Instance.RemoveXmlRPCHandler("irc_admin");
            }

            m_region.Close();

            m_regions.Remove(m_region);
        }
示例#3
0
        public void RemoveRegion(Scene scene)
        {
            if (!m_pluginEnabled)
            {
                return;
            }

            if (m_region == null)
            {
                return;
            }

            if (!String.IsNullOrEmpty(m_password))
            {
                scene.CommsManager.HttpServer.RemoveXmlRPCHandler("irc_admin");
            }

            m_region.Close();

            if (m_regions.Contains(m_region))
            {
                lock (m_regions) m_regions.Remove(m_region);
            }
        }