diff options
| author | jmoenig <jens@moenig.org> | 2014-12-17 09:41:21 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-12-17 09:41:21 +0100 |
| commit | fc256e9e727bfe85fbf885cc65afa3b152430c71 (patch) | |
| tree | d09553f18e570f0a9170523af89328c516ef2416 /threads.js | |
| parent | 777498a9f416a8a383e435d19a41f7bdae8ad048 (diff) | |
| download | snap-fc256e9e727bfe85fbf885cc65afa3b152430c71.tar.gz snap-fc256e9e727bfe85fbf885cc65afa3b152430c71.zip | |
Remove terminated processes from expired clones
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-December-11'; +modules.threads = '2014-December-17'; var ThreadManager; var Process; @@ -234,7 +234,7 @@ ThreadManager.prototype.removeTerminatedProcesses = function () { // and un-highlight their scripts var remaining = []; this.processes.forEach(function (proc) { - if (!proc.isRunning() && !proc.errorFlag && !proc.isDead) { + if ((!proc.isRunning() && !proc.errorFlag) || proc.isDead) { if (proc.topBlock instanceof BlockMorph) { proc.topBlock.removeHighlight(); } |
