File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1502,9 +1502,9 @@ Server.prototype.getConnections = function(cb) {
1502
1502
if ( -- left === 0 ) return end ( null , total ) ;
1503
1503
}
1504
1504
1505
- this . _slaves . forEach ( function ( slave ) {
1506
- slave . getConnections ( oncount ) ;
1507
- } ) ;
1505
+ for ( var n = 0 ; n < this . _slaves . length ; n ++ ) {
1506
+ this . _slaves [ n ] . getConnections ( oncount ) ;
1507
+ }
1508
1508
} ;
1509
1509
1510
1510
@@ -1540,9 +1540,8 @@ Server.prototype.close = function(cb) {
1540
1540
this . _connections ++ ;
1541
1541
1542
1542
// Poll slaves
1543
- this . _slaves . forEach ( function ( slave ) {
1544
- slave . close ( onSlaveClose ) ;
1545
- } ) ;
1543
+ for ( var n = 0 ; n < this . _slaves . length ; n ++ )
1544
+ this . _slaves [ n ] . close ( onSlaveClose ) ;
1546
1545
} else {
1547
1546
this . _emitCloseIfDrained ( ) ;
1548
1547
}
You can’t perform that action at this time.
0 commit comments