Browse Source

Dispose of clients when disposing sharded client

pull/1171/head
FiniteReality 7 years ago
parent
commit
a3390662d3
1 changed files with 2 additions and 0 deletions
  1. +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) if (disposing)
{ {
foreach (var client in _shards)
client?.Dispose();
_connectionGroupLock?.Dispose(); _connectionGroupLock?.Dispose();
} }




Loading…
Cancel
Save