Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Aug 17, 2023
1 parent ab0e4e9 commit 99147e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 4 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -39,6 +27,10 @@ class APSInstance extends InstanceBase {
this.presets()
}

async init(config) {
this.configUpdated(config);
}

initTCP() {
var self = this

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 99147e2

Please sign in to comment.