Skip to content

Commit 38e8908

Browse files
authored
Merge pull request Sofie-Automation#1424 from bbc/upstream/fix-hot-standby
Fix: Hot standby was not referring to the devices full name
2 parents 59080a7 + 28b9ce1 commit 38e8908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mos-gateway/src/mosHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ export class MosHandler {
424424
for (const [deviceId, device] of Object.entries<{ options: MosDeviceConfig }>(devices)) {
425425
if (device) {
426426
if (device.options.secondary) {
427-
this._openMediaHotStandby[device.options.secondary.id] =
427+
const fullSecondaryId = this._settings?.mosId + '_' + device.options.secondary.id
428+
this._openMediaHotStandby[fullSecondaryId] =
428429
device.options.secondary?.openMediaHotStandby || false
429430
// If the host isn't set, don't use secondary:
430431
if (!device.options.secondary.host || !device.options.secondary.id)

0 commit comments

Comments
 (0)