Skip to content

Commit c7835e2

Browse files
Merge pull request #10 from meteor/fix-set-async
Fix exception when getting meteor ready
2 parents a1583ab + 07e59bd commit c7835e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/runtime/entry.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ Ep.gatherReadyAsyncParents = function (readyList) {
396396

397397
Ep.setAsyncEvaluation = function () {
398398
if (this.asyncEvaluationIndex !== null) {
399+
if (this.status === 'evaluated') {
400+
return;
401+
}
399402
throw new Error('setAsyncEvaluation can only be called once');
400403
}
401404

0 commit comments

Comments
 (0)