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

这个提交包含在:
AJ ONeal 2019-11-06 18:17:37 -07:00
父节点 bd5ee84e25
当前提交 347402a4d4
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

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