- $replicaId = ( $i + $this->prevReplicaId + 1 ) % $this->numProcs;
- if ( isset( $pipes[$replicaId] ) ) {
- $this->prevReplicaId = $replicaId;
- $this->dispatchToReplica( $replicaId, $args );
+ $childId = ( $i + $this->prevChildId + 1 ) % $this->numProcs;
+ if ( isset( $pipes[$childId] ) ) {
+ $this->prevChildId = $childId;
+ $this->dispatchToChild( $childId, $args );