Browse Source

Clear caches on manual disconnect

pull/2/head
Brandon Smith 9 years ago
parent
commit
20a13df28b
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      Discord.Net/DiscordClient.cs

+ 6
- 0
Discord.Net/DiscordClient.cs View File

@@ -407,6 +407,12 @@ namespace Discord
_isClosing = true;
await _webSocket.DisconnectAsync();
_isClosing = false;

_channels.Clear();
_messages.Clear();
_roles.Clear();
_servers.Clear();
_users.Clear();
}

//Servers


Loading…
Cancel
Save