Stop recreating the dbus.systemBus on retries (old instances are not disposed correctly by underlying code)
This commit is contained in:
parent
4d5a4ddbe3
commit
925ccba647
3 changed files with 39 additions and 13 deletions
|
|
@ -56,7 +56,9 @@ class PlejdDeviceCommunication extends EventEmitter {
|
|||
});
|
||||
this.plejdBleHandler.on(PlejBLEHandler.EVENTS.reconnecting, () => {
|
||||
logger.info('Bluetooth reconnecting...');
|
||||
logger.verbose(`Stopping writeQueue loop until connection is established. Write queue length: ${this.writeQueue.length}`);
|
||||
logger.verbose(
|
||||
`Stopping writeQueue loop until connection is established. Write queue length: ${this.writeQueue.length}`,
|
||||
);
|
||||
this.bleConnected = false;
|
||||
clearTimeout(this.writeQueueRef);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue