diff --git a/src/extensions/scratch3_gdx_for/index.js b/src/extensions/scratch3_gdx_for/index.js index ea38f96b1..df83d8459 100644 --- a/src/extensions/scratch3_gdx_for/index.js +++ b/src/extensions/scratch3_gdx_for/index.js @@ -107,6 +107,7 @@ class GdxFor { disconnect () { if (this._device) { this._device.close(); + this._device = null; this._sensorsEnabled = false; } }