From 46ac0eeacf7d6e2797395909cf95ffdb9ed69e81 Mon Sep 17 00:00:00 2001 From: RWensveen Date: Fri, 6 Jul 2018 12:23:52 +0200 Subject: [PATCH] destroy function cannot be called on undefined --- drivers/BroadlinkDriver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/BroadlinkDriver.js b/drivers/BroadlinkDriver.js index 7a513cb..1baf6e5 100644 --- a/drivers/BroadlinkDriver.js +++ b/drivers/BroadlinkDriver.js @@ -47,9 +47,9 @@ class BroadlinkDriver extends Homey.Driver { * */ onPair(socket) { - if( this._communicate !== undefined ) { - this._communicate.destroy(); - } + //if( this._communicate !== undefined ) { + // this._communicate.destroy(); + //} let commOptions = { ipAddress : null, mac : null,