fix: don't create duplicate workers when clustering is disabled

This commit is contained in:
fEmber 2024-05-30 13:17:51 +00:00
parent d0a2708f91
commit cebad801e2

View file

@ -75,7 +75,7 @@ async function main() {
ev.mount(); ev.mount();
} }
} }
if (cluster.isWorker || envOption.disableClustering) { if (cluster.isWorker) {
await workerMain(); await workerMain();
} }