diff --git a/index.js b/index.js index 0d77d7f..aaf92bb 100644 --- a/index.js +++ b/index.js @@ -12,19 +12,7 @@ class APSInstance extends InstanceBase { async configUpdated(config) { this.config = config - var resetConnection = false - if (this.config.host != config.host || this.config.port != config.port) { - resetConnection = true - } - - if (resetConnection === true || this.socket === undefined) { - this.initTCP() - } - } - - async init(config) { - this.config = config this.captureStates = states.generateCaptureStates() this.displayStates = states.generateDisplayStates() this.slotStates = states.generateSlotStates() @@ -39,6 +27,10 @@ class APSInstance extends InstanceBase { this.presets() } + async init(config) { + this.configUpdated(config); + } + initTCP() { var self = this diff --git a/package.json b/package.json index 2f3a837..182dc49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "presentationtools-aps", - "version": "2.0.1", + "version": "2.0.2", "main": "index.js", "prettier": "@companion-module/tools/.prettierrc.json", "scripts": {