| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9e82ee9 commit cba23ed
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,8 +79,10 @@ RoundRobinHandle.prototype.remove = function(worker) { | |||
| 79 | 79 | if (this.all.size !== 0) | |
| 80 | 80 | return false; | |
| 81 | 81 | ||
| 82 | - for (var handle; handle = this.handles.shift(); handle.close()) | ||
| 83 | - ; | ||
| 82 | + for (const handle of this.handles) { | ||
| 83 | + handle.close(); | ||
| 84 | + } | ||
| 85 | + this.handles = []; | ||
| 84 | 86 | ||
| 85 | 87 | this.handle.close(); | |
| 86 | 88 | this.handle = null; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments