Fixed shard 0 restarting when bot is started in DEBUG mode (this shouldn't have affected anyone except me)
This commit is contained in:
parent
15faf088d2
commit
c21145563f
@ -252,12 +252,14 @@ namespace NadekoBot.Core.Services
|
||||
|
||||
if (!statuses.Any())
|
||||
{
|
||||
#if !DEBUG
|
||||
for (var i = 0; i < _shardProcesses.Length; i++)
|
||||
{
|
||||
var p = _shardProcesses[i];
|
||||
if (p == null || p.HasExited)
|
||||
_shardStartQueue.Enqueue(i);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ namespace NadekoBot.Extensions
|
||||
|
||||
private static readonly IEmote arrow_left = new Emoji("⬅");
|
||||
private static readonly IEmote arrow_right = new Emoji("➡");
|
||||
|
||||
//todo update this
|
||||
public static Task SendPaginatedConfirmAsync(this IMessageChannel channel, DiscordSocketClient client, int currentPage, Func<int, EmbedBuilder> pageFunc, int totalElements, int itemsPerPage, bool addPaginatedFooter = true) =>
|
||||
channel.SendPaginatedConfirmAsync(client, currentPage, (x) => Task.FromResult(pageFunc(x)), totalElements, itemsPerPage, addPaginatedFooter);
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user