mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Don't send disconnect to a closed device
This commit is contained in:
parent
328e4480f6
commit
f2f4af2590
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ class GdxFor {
|
||||||
disconnect () {
|
disconnect () {
|
||||||
if (this._device) {
|
if (this._device) {
|
||||||
this._device.close();
|
this._device.close();
|
||||||
|
this._device = null;
|
||||||
this._sensorsEnabled = false;
|
this._sensorsEnabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue