clear previous ble devices

This commit is contained in:
Marcus Westin 2020-01-20 14:11:58 +00:00
parent c078683e71
commit 27e8326202

View file

@ -72,6 +72,7 @@ class PlejdService extends EventEmitter {
this.objectManager.removeAllListeners(); this.objectManager.removeAllListeners();
} }
this.bleDevices = [];
clearInterval(this.pingRef); clearInterval(this.pingRef);
const bluez = await this.bus.getProxyObject(BLUEZ_SERVICE_NAME, '/'); const bluez = await this.bus.getProxyObject(BLUEZ_SERVICE_NAME, '/');