mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Lock plugin list in NotifyPluginsForStateChange
This commit is contained in:
parent
21d4dbec66
commit
87e391958e
1 changed files with 8 additions and 5 deletions
|
|
@ -1298,6 +1298,8 @@ internal class PluginManager : IInternalDisposableService
|
||||||
/// <param name="kind">The invalidation kind.</param>
|
/// <param name="kind">The invalidation kind.</param>
|
||||||
/// <param name="affectedInternalNames">The affected plugins.</param>
|
/// <param name="affectedInternalNames">The affected plugins.</param>
|
||||||
public void NotifyPluginsForStateChange(PluginListInvalidationKind kind, IEnumerable<string> affectedInternalNames)
|
public void NotifyPluginsForStateChange(PluginListInvalidationKind kind, IEnumerable<string> affectedInternalNames)
|
||||||
|
{
|
||||||
|
lock (this.pluginListLock)
|
||||||
{
|
{
|
||||||
foreach (var installedPlugin in this.installedPluginsList)
|
foreach (var installedPlugin in this.installedPluginsList)
|
||||||
{
|
{
|
||||||
|
|
@ -1308,6 +1310,7 @@ internal class PluginManager : IInternalDisposableService
|
||||||
new ActivePluginsChangedEventArgs(kind, affectedInternalNames));
|
new ActivePluginsChangedEventArgs(kind, affectedInternalNames));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Resolves the services that a plugin may have a dependency on.<br />
|
/// Resolves the services that a plugin may have a dependency on.<br />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue