mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-08 03:54:04 -04: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
|
// until the promise resolves. Promise resolution should reset
|
||||||
// thread.status to Thread.STATUS_RUNNING.
|
// thread.status to Thread.STATUS_RUNNING.
|
||||||
return;
|
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 no control flow has happened, switch to next block.
|
||||||
if (thread.peekStack() === currentBlockId) {
|
if (thread.peekStack() === currentBlockId) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue