Skip to content

Commit 81e240e

Browse files
authored
Merge pull request Sofie-Automation#1496 from evs-broadcast:fix/device-change-race
fix: Race condition in device change handling
2 parents 8c86f79 + 81de33b commit 81e240e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/playout-gateway/src/tsrHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ export class TSRHandler {
283283

284284
coreTsrHandler.statusChanged(status)
285285

286+
if (!coreTsrHandler._device) return
286287
// When the status has changed, the deviceName might have changed:
287288
coreTsrHandler._device.reloadProps().catch((err) => {
288289
this.logger.error(`Error in reloadProps: ${stringifyError(err)}`)

0 commit comments

Comments
 (0)