Return if a thread is toggled off

This commit is contained in:
Tim Mickel 2016-04-29 17:39:18 -04:00
parent 7d9f75b14d
commit b46ee0113f

View file

@ -188,8 +188,10 @@ Runtime.prototype.toggleStack = function (stackId) {
for (var i = 0; i < this.threads.length; i++) {
if (this.threads[i].topBlock == stackId) {
this._removeThread(this.threads[i]);
return;
}
}
// Otherwise add it
this._pushThread(stackId);
};