mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Potential race condition in action keyword management
This commit is contained in:
parent
04bd9ddc2c
commit
fb8daa4ed9
1 changed files with 1 additions and 8 deletions
|
|
@ -648,14 +648,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
}
|
||||
else
|
||||
{
|
||||
if (_nonGlobalPlugins.TryGetValue(newActionKeyword, out var item))
|
||||
{
|
||||
_nonGlobalPlugins.TryUpdate(newActionKeyword, plugin, item);
|
||||
}
|
||||
else
|
||||
{
|
||||
_nonGlobalPlugins.TryAdd(newActionKeyword, plugin);
|
||||
}
|
||||
_nonGlobalPlugins.AddOrUpdate(newActionKeyword, plugin, (key, oldValue) => plugin);
|
||||
}
|
||||
|
||||
// Update action keywords and action keyword in plugin metadata
|
||||
|
|
|
|||
Loading…
Reference in a new issue