Added TODO about potential rare race condition

This commit is contained in:
RogueException
2015-10-15 00:01:23 -03:00
parent 9d46e04f89
commit afc36728c8

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