Skip to content

Commit 3981675

Browse files
committed
Fix everything!
Huge thanks to @scarybeasts' VIA tests which made it pretty straightforward to fix.
1 parent 402820d commit 3981675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

via.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ class Via {
8686
}
8787

8888
_catchUp() {
89-
this._polltime(this.scheduler.epoch - this.lastPolltime);
89+
const cycles = this.scheduler.epoch - this.lastPolltime;
90+
if (cycles) this._polltime(cycles);
9091
this.lastPolltime = this.scheduler.epoch;
9192
this.updateNextTime();
9293
}

0 commit comments

Comments
 (0)