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
fix: nullcheck _shards before iterating (
#1493
)
tags/2.3.0
Min
GitHub
5 years ago
parent
c637bab91a
commit
1f01a2d1fa
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-2
src/Discord.Net.WebSocket/DiscordShardedClient.cs
+ 5
- 2
src/Discord.Net.WebSocket/DiscordShardedClient.cs
View File
@@ -389,8 +389,11 @@ namespace Discord.WebSocket
{
if (disposing)
{
foreach (var client in _shards)
client?.Dispose();
if (_shards != null)
{
foreach (var client in _shards)
client?.Dispose();
}
_connectionGroupLock?.Dispose();
}
Write
Preview
Loading…
Cancel
Save