exodus-framework 2.0.820 → 2.0.821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,13 +98,14 @@ class Managed extends _system.default {
|
|
98
98
|
|
99
99
|
//# Master
|
100
100
|
masterInit() {
|
101
|
-
const workers = this.getWorkers();
|
102
|
-
|
103
|
-
const worker = workers[id];
|
104
|
-
if (worker) {
|
105
|
-
worker.on('exit', (code, signal) => this.clusterDown(code, worker, signal));
|
106
|
-
}
|
107
|
-
}
|
101
|
+
/* const workers = this.getWorkers();
|
102
|
+
for (const id in workers) {
|
103
|
+
const worker = workers[id];
|
104
|
+
if (worker) {
|
105
|
+
worker.on('exit', (code, signal) => this.clusterDown(code, worker, signal));
|
106
|
+
}
|
107
|
+
}
|
108
|
+
*/
|
108
109
|
_event.default.registerWorkerExitHandle((code, worker, signal) => this.clusterDown(code, worker, signal));
|
109
110
|
this.onMasterInit();
|
110
111
|
}
|