diff options
-rw-r--r-- | OpenSim/Server/Base/ServerUtils.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index 6c6af62..d0b6c81 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs | |||
@@ -97,8 +97,14 @@ namespace OpenSim.Server.Base | |||
97 | private void OnExtensionChanged(object s, ExtensionNodeEventArgs args) | 97 | private void OnExtensionChanged(object s, ExtensionNodeEventArgs args) |
98 | { | 98 | { |
99 | IRobustConnector connector = (IRobustConnector)args.ExtensionObject; | 99 | IRobustConnector connector = (IRobustConnector)args.ExtensionObject; |
100 | |||
101 | Addin a = Registry.GetAddin(args.ExtensionNode.Addin.Id); | 100 | Addin a = Registry.GetAddin(args.ExtensionNode.Addin.Id); |
101 | |||
102 | if(a == null) | ||
103 | { | ||
104 | Registry.Rebuild(null); | ||
105 | a = Registry.GetAddin(args.ExtensionNode.Addin.Id); | ||
106 | } | ||
107 | |||
102 | m_log.InfoFormat("[SERVER]: Extension Change: {0}/{1}", Registry.DefaultAddinsFolder, a.Name.Replace(',', '.')); | 108 | m_log.InfoFormat("[SERVER]: Extension Change: {0}/{1}", Registry.DefaultAddinsFolder, a.Name.Replace(',', '.')); |
103 | 109 | ||
104 | switch(args.Change) | 110 | switch(args.Change) |