fix: don't attempt to load orphaned plugins

This commit is contained in:
goaaats 2023-01-07 22:29:16 +01:00
parent bb745fc23e
commit 568f750d59
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -866,13 +866,13 @@ Thanks and have fun!";
{ {
try try
{ {
if (!plugin.IsDisabled) if (!plugin.IsDisabled && !plugin.IsOrphaned)
{ {
await plugin.LoadAsync(reason); await plugin.LoadAsync(reason);
} }
else else
{ {
Log.Verbose($"{name} was disabled"); Log.Verbose($"{name} not loaded, disabled:{plugin.IsDisabled} orphaned:{plugin.IsOrphaned}");
} }
} }
catch (InvalidPluginException) catch (InvalidPluginException)