Skip to content

Commit

Permalink
fix: Thread-Safe Internal Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXorog committed Jul 29, 2024
1 parent 4233097 commit c1d8302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DisCatSharp/Clients/DiscordClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public int Ping
public IReadOnlyDictionary<ulong, DiscordPresence> Presences
=> this._presencesLazy.Value;

internal Dictionary<ulong, DiscordPresence> PresencesInternal = [];
internal ConcurrentDictionary<ulong, DiscordPresence> PresencesInternal = [];
private Lazy<IReadOnlyDictionary<ulong, DiscordPresence>> _presencesLazy;

/// <summary>
Expand Down

0 comments on commit c1d8302

Please sign in to comment.