Browse Source

More reconnect tweaks

tags/docs-0.9
Brandon Smith 9 years ago
parent
commit
e7b9a589b9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/DiscordClient.cs

+ 1
- 1
src/Discord.Net/DiscordClient.cs View File

@@ -108,11 +108,11 @@ namespace Discord
//Reconnect if we didn't cause the disconnect
if (e.WasUnexpected)
{
await Task.Delay(_config.ReconnectDelay);
while (!_disconnectToken.IsCancellationRequested)
{
try
{
await Task.Delay(_config.ReconnectDelay);
await _webSocket.ReconnectAsync();
if (_http.Token != null)
await _webSocket.Login(_http.Token);


Loading…
Cancel
Save