X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=PluginManager.cs;fp=PluginManager.cs;h=56bfe55bd5228dd6b913e6f9f888af40c88a5479;hb=11835c28c3407f9bbd4aa68b875a528d13ff0d73;hp=551d5fdf56d4f88afa4b5018a7ce6841767f2d0a;hpb=b244412c1fbb99111bf820bb72f5b6146174405f;p=WebThing.git diff --git a/PluginManager.cs b/PluginManager.cs index 551d5fd..56bfe55 100644 --- a/PluginManager.cs +++ b/PluginManager.cs @@ -27,6 +27,8 @@ namespace bytex64.WebThing { Type[] types = a.GetTypes(); foreach (Type t in types) { if (t.IsSubclassOf(typeof(WebThingPlugin))) { + if (Plugins.ContainsKey(t.FullName)) + continue; WebThingPlugin p = (WebThingPlugin) a.CreateInstance(t.FullName, false, BindingFlags.ExactBinding, null, null, null, null); p.Init(wt); Plugins[t.FullName] = p;