mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Fix tick yielding threads
This commit is contained in:
parent
06573f4624
commit
24355c6e6d
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue