kcozens / OpenSimProfile

OpenSimProfile is an add-on profile module for use with the Open Simulator project
3 stars 0 forks source link

RegionLoaded patch #6

Closed djphil closed 7 years ago

djphil commented 7 years ago

Have you apply the patch proposed bu Ubit ? Apparently no, here is:

on its source:

        public void RegionLoaded(Scene scene)
        {
            // Hook up events
            scene.EventManager.OnNewClient += OnNewClient;
        }

change to:

        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
                return;

            // Hook up events
            scene.EventManager.OnNewClient += OnNewClient;
        }

Source: http://opensimulator.org/mantis/view.php?id=8150#c31762

kcozens commented 7 years ago

Fixed in commit 99e61cb72b54325af93585df8e5ab8e93874a9fd Author: Kevin Cozens kevin@ve3syb.ca Date: Sun Apr 16 11:01:23 2017 -0400

Added enabled check in RegionLoaded. Unhook event handler in RemoveRegion.
Fixes issue #6.