Skip to content

Commit e8cf5ee

Browse files
committed
Use ConcurrentDictionary to replace Dictionary
1 parent be8bb8b commit e8cf5ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using System.Runtime.CompilerServices;
2222
using Flow.Launcher.Infrastructure.Logger;
2323
using Flow.Launcher.Infrastructure.Storage;
24+
using System.Collections.Concurrent;
2425

2526
namespace Flow.Launcher
2627
{
@@ -144,7 +145,7 @@ public void LogWarn(string className, string message, [CallerMemberName] string
144145
public void LogException(string className, string message, Exception e,
145146
[CallerMemberName] string methodName = "") => Log.Exception(className, message, e, methodName);
146147

147-
private readonly Dictionary<Type, object> _pluginJsonStorages = new();
148+
private readonly ConcurrentDictionary<Type, object> _pluginJsonStorages = new();
148149

149150
public void SavePluginSettings()
150151
{

0 commit comments

Comments
 (0)