Fixed cpu usage

This commit is contained in:
Master Kwoth 2017-10-24 05:06:06 +02:00
parent ec539bf884
commit 15faf088d2
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace NadekoBot.Core.Services.Impl
private readonly IBotCredentials _creds; private readonly IBotCredentials _creds;
private readonly DateTime _started; private readonly DateTime _started;
public const string BotVersion = "2.1.1"; public const string BotVersion = "2.1.2";
public string Author => "Kwoth#2560"; public string Author => "Kwoth#2560";
public string Library => "Discord.Net"; public string Library => "Discord.Net";

View File

@ -228,6 +228,7 @@ namespace NadekoBot.Core.Services
await Task.Delay(6000).ConfigureAwait(false); await Task.Delay(6000).ConfigureAwait(false);
} }
tsc.TrySetResult(true); tsc.TrySetResult(true);
await Task.Delay(6000).ConfigureAwait(false);
} }
while (true); while (true);
// ^ keep checking for shards which need to be restarted // ^ keep checking for shards which need to be restarted