mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Fix registry issue
Rebuild registry if loading from a local dll to give access to the addin data for it on the first pass.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user