From 6379d7484b936526936cbf64408efbba9094f6fc Mon Sep 17 00:00:00 2001 From: Vishal00000 <52280790+Vishal8523@users.noreply.github.com> Date: Mon, 29 May 2023 18:08:09 +0530 Subject: [PATCH] Update DbusInterfaceBase.js To fix the issue of accumulating listeners --- lib/DbusInterfaceBase.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DbusInterfaceBase.js b/lib/DbusInterfaceBase.js index 9c87a8c..7bb9a54 100644 --- a/lib/DbusInterfaceBase.js +++ b/lib/DbusInterfaceBase.js @@ -5,6 +5,7 @@ class DbusInterfaceBase extends EventEmitter { super(); this._interface = interface_; this._bluez = bluez; + this._propertyInterface = null; // forward property change events const forwardPropertyChange = (iface, changed, invalidated) => { @@ -77,4 +78,4 @@ class DbusInterfaceBase extends EventEmitter { } -module.exports = DbusInterfaceBase; \ No newline at end of file +module.exports = DbusInterfaceBase;