Skip to content

Commit

Permalink
Clean up lru cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jan 1, 2025
1 parent 7e89606 commit 403395b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/utilities/LRUCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@ class LRUCache {
markAllUnused() {

this.usedSet.clear();
if ( this.unloadingHandle !== - 1 ) {

cancelAnimationFrame( this.unloadingHandle );
this.unloadingHandle = - 1;

}

}

Expand Down Expand Up @@ -364,6 +358,8 @@ class LRUCache {

scheduleUnload() {

cancelAnimationFrame( this.unloadingHandle );

if ( ! this.scheduled ) {

this.scheduled = true;
Expand Down

0 comments on commit 403395b

Please sign in to comment.