diff --git a/src/extensions/scratch3_microbit/index.js b/src/extensions/scratch3_microbit/index.js index 16c0a6c44..91ef65293 100644 --- a/src/extensions/scratch3_microbit/index.js +++ b/src/extensions/scratch3_microbit/index.js @@ -69,6 +69,7 @@ class MicroBit { * @private */ this._runtime = runtime; + this._runtime.on('PROJECT_STOP_ALL', this.stopAll.bind(this)); /** * The BluetoothLowEnergy connection socket for reading/writing peripheral data.