From cebad801e21500f87b4978bb97bf0df025dceb9d Mon Sep 17 00:00:00 2001 From: fEmber Date: Thu, 30 May 2024 13:17:51 +0000 Subject: [PATCH] fix: don't create duplicate workers when clustering is disabled --- packages/backend/src/boot/entry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/boot/entry.ts b/packages/backend/src/boot/entry.ts index ae74a43c84..3882686fdc 100644 --- a/packages/backend/src/boot/entry.ts +++ b/packages/backend/src/boot/entry.ts @@ -75,7 +75,7 @@ async function main() { ev.mount(); } } - if (cluster.isWorker || envOption.disableClustering) { + if (cluster.isWorker) { await workerMain(); }