mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 00:10:07 +00:00
fix non-sharded loadup
This commit is contained in:
@@ -98,7 +98,7 @@ export const spawnShards = async (
|
||||
payload: unknown,
|
||||
id = 1,
|
||||
) => {
|
||||
if (id < data.shards) {
|
||||
if ((data.shards === 1 && id === 1) || id < data.shards) {
|
||||
if (createNextShard) {
|
||||
createNextShard = false;
|
||||
createShardWorker();
|
||||
|
||||
Reference in New Issue
Block a user