This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Invalidate caches when a cached object is imported.
pull/17/head
RogueException
9 years ago
parent
2cd07edf2e
commit
5f1f202b79
1 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
src/Discord.Net/Helpers/AsyncCollection.cs
+ 6
- 1
src/Discord.Net/Helpers/AsyncCollection.cs
View File
@@ -99,7 +99,12 @@ namespace Discord
lock (_writerLock)
{
foreach (var pair in items)
_dictionary.TryAdd(pair.Key, pair.Value);
{
var value = pair.Value;
_dictionary.TryAdd(pair.Key, value);
value.Cache();
RaiseItemCreated(value);
}
}
}
Write
Preview
Loading…
Cancel
Save