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 9e82ee9 commit cba23edCopy full SHA for cba23ed
lib/internal/cluster/round_robin_handle.js
@@ -79,8 +79,10 @@ RoundRobinHandle.prototype.remove = function(worker) {
79
if (this.all.size !== 0)
80
return false;
81
82
- for (var handle; handle = this.handles.shift(); handle.close())
83
- ;
+ for (const handle of this.handles) {
+ handle.close();
84
+ }
85
+ this.handles = [];
86
87
this.handle.close();
88
this.handle = null;
0 commit comments