Skip to content

Commit

Permalink
merge 'release49' into release50
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Sep 5, 2023
2 parents 4cb7106 + 65a73c4 commit 0f5523d
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 178 deletions.
281 changes: 107 additions & 174 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions packages/timeline-state-resolver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
- translations for actions ([df4cb43](https://github.com/nrkno/tv-automation-state-timeline-resolver/commit/df4cb43cf16a8e2ae34c1fe44801c5a327f9b01e))
- update for casparcg-connection rewrite ([5dfdd23](https://github.com/nrkno/tv-automation-state-timeline-resolver/commit/5dfdd2320caf89432d36513026c1259e2cf3d366))

## [7.5.1](https://github.com/nrkno/tv-automation-state-timeline-resolver/compare/7.5.0...7.5.1) (2023-09-04)

### Bug Fixes

- casparcg disconnect handler may not fire ([74c1f8a](https://github.com/nrkno/tv-automation-state-timeline-resolver/commit/74c1f8ac6626bdc9c7ac2bb2737550306905f4b1))
- **sisyfos:** remove local port & terminate correctly ([c11801a](https://github.com/nrkno/tv-automation-state-timeline-resolver/commit/c11801a1f787e3fbd965416138e973c3c940d1b7))
- terminate devices fully ([028167a](https://github.com/nrkno/tv-automation-state-timeline-resolver/commit/028167ae7dbc1e2cb5f70820554068d434bed75d))

# [7.5.0](https://github.com/nrkno/tv-automation-state-timeline-resolver/compare/7.5.0-release47.7...7.5.0) (2023-02-28)

**Note:** Version bump only for package timeline-state-resolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export class AtemDevice extends DeviceWithState<DeviceState, DeviceOptionsAtemIn
.catch(() => {
resolve(false)
})
.finally(() => {
this._atem.destroy().catch(() => null)
this._atem.removeAllListeners()
})
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,16 @@ export class CasparCGDevice extends DeviceWithState<State, DeviceOptionsCasparCG
if (!this._ccg) {
resolve(true)
return
}
this._ccg.disconnect()
this._ccg.once('disconnect', () => {
} else if (!this._ccg.connected) {
this._ccg.once('disconnect', () => {
resolve(true)
this._ccg.removeAllListeners()
})
this._ccg.disconnect()
} else {
this._ccg.removeAllListeners()
resolve(true)
})
}
})
}
/** Called by the Conductor a bit before a .handleState is called */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class HTTPSendDevice extends DeviceWithState<HTTPSendState, DeviceOptions
}
async terminate() {
this._doOnTime.dispose()
this.activeLayers.clear()
return Promise.resolve(true)
}
getStatus(): DeviceStatus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export class OscDevice extends EventEmitter implements Device<OSCOptions, OscDev
return Promise.resolve(true) // This device doesn't have any initialization procedure
}
async terminate(): Promise<boolean> {
this._oscClient.close()
this._oscClient.removeAllListeners()
return true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class ShotokuDevice extends DeviceWithState<ShotokuDeviceState, DeviceOpt
}
async terminate() {
this._doOnTime.dispose()
await this._shotoku.dispose()
return Promise.resolve(true)
}
getStatus(): DeviceStatus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ export class SisyfosMessageDevice extends DeviceWithState<SisyfosState, DeviceOp
}
async terminate() {
this._doOnTime.dispose()
this._sisyfos.dispose()
this._sisyfos.removeAllListeners()
return Promise.resolve(true)
}
getStatus(): DeviceStatus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export class VizMSEDevice extends DeviceWithState<VizMSEState, DeviceOptionsVizM
async terminate(): Promise<boolean> {
if (this._vizmseManager) {
await this._vizmseManager.terminate()
this._vizmseManager.removeAllListeners()
delete this._vizmseManager
}
this._doOnTime.dispose()
Expand Down

0 comments on commit 0f5523d

Please sign in to comment.