There was an error while loading. Please reload this page.
1 parent 8855395 commit 4b3e948Copy full SHA for 4b3e948
lib/internal/cluster/round_robin_handle.js
@@ -73,8 +73,10 @@ RoundRobinHandle.prototype.remove = function(worker) {
73
if (this.all.size !== 0)
74
return false;
75
76
- for (var handle; handle = this.handles.shift(); handle.close())
77
- ;
+ for (const handle of this.handles) {
+ handle.close();
78
+ }
79
+ this.handles = [];
80
81
this.handle.close();
82
this.handle = null;
0 commit comments