diff --git a/src/engine/sequencer.js b/src/engine/sequencer.js index 5f25c7a8c..7d40dd85a 100644 --- a/src/engine/sequencer.js +++ b/src/engine/sequencer.js @@ -221,6 +221,9 @@ class Sequencer { // until the promise resolves. Promise resolution should reset // thread.status to Thread.STATUS_RUNNING. return; + } else if (thread.status === Thread.STATUS_YIELD_TICK) { + // stepThreads will reset the thread to Thread.STATUS_RUNNING + return; } // If no control flow has happened, switch to next block. if (thread.peekStack() === currentBlockId) {