mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Attempted fix for concurrent shard startup
This commit is contained in:
parent
95e0fcc36d
commit
6dfc937257
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue