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
parent
92849c5cc3
commit
a960efeaba
|
@ -97,8 +97,14 @@ namespace OpenSim.Server.Base
|
||||||
private void OnExtensionChanged(object s, ExtensionNodeEventArgs args)
|
private void OnExtensionChanged(object s, ExtensionNodeEventArgs args)
|
||||||
{
|
{
|
||||||
IRobustConnector connector = (IRobustConnector)args.ExtensionObject;
|
IRobustConnector connector = (IRobustConnector)args.ExtensionObject;
|
||||||
|
|
||||||
Addin a = Registry.GetAddin(args.ExtensionNode.Addin.Id);
|
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(',', '.'));
|
m_log.InfoFormat("[SERVER]: Extension Change: {0}/{1}", Registry.DefaultAddinsFolder, a.Name.Replace(',', '.'));
|
||||||
|
|
||||||
switch(args.Change)
|
switch(args.Change)
|
||||||
|
|
Loading…
Reference in New Issue