Clear caches on manual disconnect

This commit is contained in:
Brandon Smith
2015-08-08 11:52:08 -03:00
parent 070121c9dc
commit 20a13df28b

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