Another attempt at fixing a weird coordinator bug

This commit is contained in:
Kwoth
2021-12-19 01:56:30 +01:00
parent 77fb47183f
commit d1be56fbc1

View File

@@ -160,7 +160,9 @@ namespace NadekoBot.Coordinator
private void StartShard(int shardId)
{
var status = _shardStatuses[shardId];
if (status.Process is {HasExited: false} p)
try
{
if (status.Process is { HasExited: false } p)
{
try
{
@@ -171,7 +173,11 @@ namespace NadekoBot.Coordinator
}
}
try { status.Process?.Dispose(); } catch { }
status.Process?.Dispose();
}
catch
{
}
var proc = StartShardProcess(shardId);
_shardStatuses[shardId] = status with