make sure to stop frequencies inside forever loops on stop button

pull/89/head
jmoenig 2019-04-04 14:44:47 +02:00
rodzic 19a8aa0432
commit e17161028c
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -7253,7 +7253,8 @@ StageMorph.prototype.fireGreenFlagEvent = function () {
};
StageMorph.prototype.fireStopAllEvent = function () {
var ide = this.parentThatIsA(IDE_Morph);
var ide = this.parentThatIsA(IDE_Morph),
myself = this;
this.threads.resumeAll(this.stage);
@ -7273,6 +7274,7 @@ StageMorph.prototype.fireStopAllEvent = function () {
if (ide) {
ide.nextSteps([
nop,
function () {myself.stopAllActiveSounds(); }, // catch forever loops
function () {ide.controlBar.pauseButton.refresh(); }
]);
}