File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -270,14 +270,14 @@ function _disconnect(primaryInitiated) {
270270 }
271271 }
272272
273- handles . forEach ( ( handle ) => {
273+ for ( const handle of handles . values ( ) ) {
274274 waitingCount ++ ;
275275
276276 if ( handle [ owner_symbol ] )
277277 handle [ owner_symbol ] . close ( checkWaitingCount ) ;
278278 else
279279 handle . close ( checkWaitingCount ) ;
280- } ) ;
280+ }
281281
282282 handles . clear ( ) ;
283283 checkWaitingCount ( ) ;
Original file line number Diff line number Diff line change @@ -152,10 +152,10 @@ function removeWorker(worker) {
152152function removeHandlesForWorker ( worker ) {
153153 assert ( worker ) ;
154154
155- handles . forEach ( ( handle , key ) => {
155+ for ( const { 0 : key , 1 : handle } of handles ) {
156156 if ( handle . remove ( worker ) )
157157 handles . delete ( key ) ;
158- } ) ;
158+ }
159159}
160160
161161cluster . fork = function ( env ) {
You can’t perform that action at this time.
0 commit comments