Skip to content

Commit

Permalink
Fix everything!
Browse files Browse the repository at this point in the history
Huge thanks to @scarybeasts' VIA tests which made it pretty
straightforward to fix.
  • Loading branch information
mattgodbolt committed Nov 20, 2024
1 parent 402820d commit 3981675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion via.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class Via {
}

_catchUp() {
this._polltime(this.scheduler.epoch - this.lastPolltime);
const cycles = this.scheduler.epoch - this.lastPolltime;
if (cycles) this._polltime(cycles);
this.lastPolltime = this.scheduler.epoch;
this.updateNextTime();
}
Expand Down

0 comments on commit 3981675

Please sign in to comment.