Skip to content

Commit

Permalink
Merge pull request #35 from mau31415/master
Browse files Browse the repository at this point in the history
remove the 32bit limit
  • Loading branch information
titanism authored Nov 28, 2023
2 parents 59094ce + 1251c5b commit 78a39e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,7 @@ later.setTimeout = function (fn, sched, timezone) {
diff = next[1] ? next[1].getTime() - now : 1e3;
}

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

return {
Expand Down

0 comments on commit 78a39e0

Please sign in to comment.