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

This commit is contained in:
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();
}