fix non-sharded loadup

This commit is contained in:
Skillz
2020-05-22 09:51:31 -04:00
parent 09f9dcf871
commit 7cff662db5

View File

@@ -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();