Skip to content

Commit

Permalink
Fix setInterval/Timer regression in fps-controller
Browse files Browse the repository at this point in the history
Fixes #3790
  • Loading branch information
Rob Walch committed Apr 19, 2021
1 parent bbe24e6 commit 7ae3331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/fps-controller.ts
Expand Up @@ -58,7 +58,7 @@ class FPSController implements ComponentAPI {
}

self.clearInterval(this.timer);
this.timer = self.setTimeout(
this.timer = self.setInterval(
this.checkFPSInterval.bind(this),
config.fpsDroppedMonitoringPeriod
);
Expand Down

0 comments on commit 7ae3331

Please sign in to comment.