node-ble icon indicating copy to clipboard operation
node-ble copied to clipboard

Device (properties) event listener leak

Open tuxedoxt opened this issue 2 years ago • 0 comments

Hello,

using Adapter.getDevice followed by any property getter like Device.getName seems to leave PropertiesChanged event listeners.

Using device Device.disconnect (even when never having used Device.connect) removes listeners on Device.helper but not on Device.helper._propsProxy.

This is one of two issues I noticed while repeatedly trying to enumerate a devices and read some properties from them (in a heavy BLE traffic area).

tuxedoxt avatar May 18 '22 17:05 tuxedoxt