fix: don't try to disable plugin during update if it already has been

This commit is contained in:
goat 2022-07-16 00:13:07 +02:00
parent b7bd3f28ea
commit 46c2511c84
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -968,7 +968,9 @@ internal partial class PluginManager : IDisposable, IServiceType
{
try
{
if (!plugin.IsDisabled)
plugin.Disable();
lock (this.pluginListLock)
{
this.InstalledPlugins = this.InstalledPlugins.Remove(plugin);