Browse Source

Actually run a collections OnRemoved code when an item is removed

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

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

@@ -96,7 +96,10 @@ namespace Discord.Collections
{
TValue result;
if (_dictionary.TryRemove(key, out result))
{
OnRemoved(result);
return result;
}
}
}
return null;


Loading…
Cancel
Save