Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit e59d5e1

Browse files
Merge pull request #485 from trxcllnt/fix-immediate-scheduler-due-time-calc
Adds the current time to the due time in ImmediateScheduler's scheduleRelative method so the while loop blocks appropriately.
2 parents 0201653 + 0d51b46 commit e59d5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/concurrency/immediatescheduler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function scheduleNow(state, action) { return action(this, state); }
55

66
function scheduleRelative(state, dueTime, action) {
7-
var dt = normalizeTime(dueTime);
7+
var dt = this.now() + normalizeTime(dueTime);
88
while (dt - this.now() > 0) { }
99
return action(this, state);
1010
}

0 commit comments

Comments
 (0)