From afc36728c8d1ac7f0ddf3c8e920af88be829ec9e Mon Sep 17 00:00:00 2001 From: RogueException Date: Thu, 15 Oct 2015 00:01:23 -0300 Subject: [PATCH] Added TODO about potential rare race condition --- src/Discord.Net/Collections/AsyncCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net/Collections/AsyncCollection.cs b/src/Discord.Net/Collections/AsyncCollection.cs index 74b7204ad..052988535 100644 --- a/src/Discord.Net/Collections/AsyncCollection.cs +++ b/src/Discord.Net/Collections/AsyncCollection.cs @@ -97,7 +97,7 @@ namespace Discord.Collections TValue result; if (_dictionary.TryRemove(key, out result)) { - OnRemoved(result); + OnRemoved(result); //TODO: If this object is accessed before OnRemoved finished firing, properties such as Server.Channels will have null elements return result; } }