This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
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
Dispose of clients when disposing sharded client
pull/1171/head
FiniteReality
7 years ago
parent
25882bba26
commit
a3390662d3
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/Discord.Net.WebSocket/DiscordShardedClient.cs
+ 2
- 0
src/Discord.Net.WebSocket/DiscordShardedClient.cs
View File
@@ -382,6 +382,8 @@ namespace Discord.WebSocket
{
if (disposing)
{
foreach (var client in _shards)
client?.Dispose();
_connectionGroupLock?.Dispose();
}
Write
Preview
Loading…
Cancel
Save