Skip to content

Commit

Permalink
Fix deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Oct 18, 2017
1 parent 6988663 commit accafb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function workLoop(deadline) {
if (!nextUnitOfWork) {
resetNextUnitOfWork();
}
while (nextUnitOfWork) {
while (nextUnitOfWork && deadline.timeRemaining() > ENOUGH_TIME) {
nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
}
if (pendingCommit) {
Expand Down

0 comments on commit accafb8

Please sign in to comment.