merge: fix: don't create duplicate workers when clustering is disabled (!508)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/508

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <marie@kaifa.ch>
This commit is contained in:
fEmber 2024-05-30 13:17:52 +00:00
commit d0be6ca332
1 changed files with 1 additions and 1 deletions

View File

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