From 347402a4d404e6231b118f51829ac4268ef609b5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 6 Nov 2019 18:17:37 -0700 Subject: [PATCH] force cluster false for pre-worker systems (issue #80) --- greenlock-express.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greenlock-express.js b/greenlock-express.js index 04c31f0..4b8292e 100644 --- a/greenlock-express.js +++ b/greenlock-express.js @@ -17,7 +17,7 @@ var GLE = module.exports; // under the hood. That's the hope, anyway. GLE.init = function(fn) { - if (cluster.isWorker) { + if (false !== fn.cluster && cluster.isWorker) { // ignore the init function and launch the worker return require("./worker.js").create(); }