Fixed shard 0 restarting when bot is started in DEBUG mode (this shouldn't have affected anyone except me)

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

View File

@ -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
{