Skip to content

Commit d01800e

Browse files
authored
Merge pull request Sofie-Automation#457 from bbc/rjmunro/forward-casparcg-errors
fix: Listen for errors from casparcg and pass them on
2 parents 3a32778 + 484a823 commit d01800e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/timeline-state-resolver/src/integrations/casparCG

packages/timeline-state-resolver/src/integrations/casparCG/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ export class CasparCGDevice extends DeviceWithState<State, CasparCGDeviceTypes,
199199
})
200200
})
201201

202+
this._ccg.on('error', (e) => {
203+
this.emit('error', 'CasparCG connection error', e)
204+
})
205+
202206
this._ccg.on('disconnect', () => {
203207
this._connected = false
204208
this._connectionChanged()

0 commit comments

Comments
 (0)