From 6dfc93725745183b974d7f3d449e4eea12b5aa49 Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 7 Sep 2021 02:17:41 +0200 Subject: [PATCH] Attempted fix for concurrent shard startup --- Myriad/Gateway/Shard.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Myriad/Gateway/Shard.cs b/Myriad/Gateway/Shard.cs index 4bbc6226..b27b2b96 100644 --- a/Myriad/Gateway/Shard.cs +++ b/Myriad/Gateway/Shard.cs @@ -116,8 +116,8 @@ namespace Myriad.Gateway _worker = ShardLoop(); // we can probably TCS this instead of spin loop but w/e - while (State != ShardState.Identifying) - await Task.Delay(100); + while (State < ShardState.Identifying) + await Task.Delay(50); } public async Task UpdateStatus(GatewayStatusUpdate payload)