kopia lustrzana https://github.com/backface/turtlestitch
Remove terminated processes from expired clones
rodzic
777498a9f4
commit
fc256e9e72
|
@ -2402,3 +2402,4 @@ ______
|
|||
141217
|
||||
------
|
||||
* Objects, Store: Experimental “processes” count watcher (hidden in dev mode)
|
||||
* Threads: Remove terminated processes from expired clones
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue