Skip to content

Commit

Permalink
Remove unused thread.isKilled check
Browse files Browse the repository at this point in the history
This check only makes sense if isKilled === true implies that it was already
removed from threads, however that is not the case in the VM itself and
especially in some extensions.
  • Loading branch information
GarboMuffin committed May 15, 2024
1 parent f548d1b commit 847088c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/engine/sequencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ class Sequencer {
}
this.stepThread(activeThread);
activeThread.warpTimer = null;
if (activeThread.isKilled) {
i--; // if the thread is removed from the list (killed), do not increase index
}
}
if (activeThread.status === Thread.STATUS_RUNNING) {
numActiveThreads++;
Expand Down

0 comments on commit 847088c

Please sign in to comment.