Skip to content

Commit

Permalink
destroy function cannot be called on undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
RWensveen authored Jul 6, 2018
1 parent 3a8abf3 commit 46ac0ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/BroadlinkDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 46ac0ee

Please sign in to comment.