force cluster false for pre-worker systems (issue #80)

Este commit está contenido en:
AJ ONeal 2019-11-06 18:17:37 -07:00
padre bd5ee84e25
commit 347402a4d4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados

Ver fichero

@ -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();
}