server: fixup cluster worker hook

This commit is contained in:
Koushik Dutta
2025-02-04 19:22:49 -08:00
parent 6caafd73f5
commit c651c2164b

View File

@@ -75,7 +75,7 @@ function start(mainFilename: string, options?: {
const clusterMode = getScryptedClusterMode();
if (clusterMode?.[0] === 'client') {
const start = require('./scrypted-cluster-main').default;
return start(mainFilename, options?.serviceControl);
return start(mainFilename, options);
}
else {
const start = require('./scrypted-server-main').default;