Skip to content

Commit

Permalink
Fix infinite recursion in PooledRingBuffer updateLast
Browse files Browse the repository at this point in the history
  • Loading branch information
esdmr committed Mar 29, 2024
1 parent 5734566 commit 070f664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ export class PooledRingBuffer<T> extends RingBuffer<T> {

override updateLast(item: T): void {
this.addToPool(this._array[this._index]);
this.updateLast(item);
super.updateLast(item);
}
}

0 comments on commit 070f664

Please sign in to comment.