From 15faf088d22c995a90b8ac0273cccc1d338dbeee Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 24 Oct 2017 05:06:06 +0200 Subject: [PATCH] Fixed cpu usage --- NadekoBot.Core/Services/Impl/StatsService.cs | 2 +- NadekoBot.Core/Services/ShardsCoordinator.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NadekoBot.Core/Services/Impl/StatsService.cs b/NadekoBot.Core/Services/Impl/StatsService.cs index bd1f7abf..a4617f03 100644 --- a/NadekoBot.Core/Services/Impl/StatsService.cs +++ b/NadekoBot.Core/Services/Impl/StatsService.cs @@ -21,7 +21,7 @@ namespace NadekoBot.Core.Services.Impl private readonly IBotCredentials _creds; 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 Library => "Discord.Net"; diff --git a/NadekoBot.Core/Services/ShardsCoordinator.cs b/NadekoBot.Core/Services/ShardsCoordinator.cs index 25b36a88..d2341090 100644 --- a/NadekoBot.Core/Services/ShardsCoordinator.cs +++ b/NadekoBot.Core/Services/ShardsCoordinator.cs @@ -228,6 +228,7 @@ namespace NadekoBot.Core.Services await Task.Delay(6000).ConfigureAwait(false); } tsc.TrySetResult(true); + await Task.Delay(6000).ConfigureAwait(false); } while (true); // ^ keep checking for shards which need to be restarted