We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1f164 commit 92a9ea3Copy full SHA for 92a9ea3
lib/internal/cluster/child.js
@@ -270,7 +270,7 @@ function _disconnect(primaryInitiated) {
270
}
271
272
273
- for (const handle of handles) {
+ for (const handle of handles.values()) {
274
waitingCount++;
275
276
if (handle[owner_symbol])
lib/internal/cluster/primary.js
@@ -153,7 +153,7 @@ function removeHandlesForWorker(worker) {
153
assert(worker);
154
155
// eslint-disable-next-line node-core/no-array-destructuring
156
- for (const [key, handle] of handles.entries()) {
+ for (const [key, handle] of handles) {
157
if (handle.remove(worker))
158
handles.delete(key);
159
0 commit comments