mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-08 12:29:46 -04:00
Ensure setCompatibilityMode continues to restart if previously started.
This was previous behavior, but the previous commit which prevents restarts based on _steppingInterval truthiness broke it because clearInterval does not modify the value of _steppingInterval
This commit is contained in:
parent
4378603d36
commit
421aac6340
2 changed files with 29 additions and 0 deletions
src/engine
|
@ -1763,6 +1763,7 @@ class Runtime extends EventEmitter {
|
|||
this.compatibilityMode = compatibilityModeOn;
|
||||
if (this._steppingInterval) {
|
||||
clearInterval(this._steppingInterval);
|
||||
this._steppingInterval = null;
|
||||
this.start();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue