Fix registry issue

Rebuild registry if loading from a local dll to give access to the addin data for it on the first pass.
connector_plugin
BlueWall 2012-10-09 08:00:02 -04:00
parent 92849c5cc3
commit a960efeaba
1 changed files with 7 additions and 1 deletions

View File

@ -97,8 +97,14 @@ namespace OpenSim.Server.Base
private void OnExtensionChanged(object s, ExtensionNodeEventArgs args)
{
IRobustConnector connector = (IRobustConnector)args.ExtensionObject;
Addin a = Registry.GetAddin(args.ExtensionNode.Addin.Id);
if(a == null)
{
Registry.Rebuild(null);
a = Registry.GetAddin(args.ExtensionNode.Addin.Id);
}
m_log.InfoFormat("[SERVER]: Extension Change: {0}/{1}", Registry.DefaultAddinsFolder, a.Name.Replace(',', '.'));
switch(args.Change)