Browse Source

Added TODO about potential rare race condition

tags/docs-0.9
RogueException 9 years ago
parent
commit
afc36728c8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Collections/AsyncCollection.cs

+ 1
- 1
src/Discord.Net/Collections/AsyncCollection.cs View File

@@ -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;
}
}


Loading…
Cancel
Save