Skip to content

Commit

Permalink
Revert "remove the 32bit limit"
Browse files Browse the repository at this point in the history
This reverts commit 1251c5b.
  • Loading branch information
titanism committed Nov 28, 2023
1 parent 0ba6bd9 commit 53c5a89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,10 @@ later.setTimeout = function (fn, sched, timezone) {
diff = next[1] ? next[1].getTime() - now : 1e3;
}

t = setTimeout(fn, diff);
t =
diff < 2147483647
? setTimeout(fn, diff)
: setTimeout(scheduleTimeout, 2147483647);
} // scheduleTimeout()

return {
Expand Down

0 comments on commit 53c5a89

Please sign in to comment.