Skip to content

Commit

Permalink
Whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
testcodespaceerfer committed Sep 13, 2023
1 parent 6112799 commit 8902bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tink/state/ObservableDate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ObservableDate implements ObservableObject<Bool> {
var state = new State(false);
function schedule() {
if (now == null) now = Date.now().getTime();
switch Std.int(now - stamp) {
switch Std.int(stamp - now) {
case _ < 0 => true: // overflow
now = null;
haxe.Timer.delay(schedule, 1 << 30);
Expand Down

0 comments on commit 8902bbd

Please sign in to comment.