Skip to content

Commit e2fe446

Browse files
committed
fix: dis-/en-able heartbeat when openMediaHotStandby
1 parent ce68543 commit e2fe446

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/mos-gateway/src/mosHandler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,11 @@ export class MosHandler {
488488
deviceOptions.primary.heartbeatInterval =
489489
deviceOptions.primary.heartbeatInterval || DEFAULT_MOS_HEARTBEAT_INTERVAL
490490

491+
if (deviceOptions.secondary?.id && this._openMediaHotStandby[deviceOptions.secondary.id]) {
492+
//@ts-expect-error this is not yet added to the official mos-connection
493+
deviceOptions.secondary.openMediaHotStandby = true
494+
}
495+
491496
const mosDevice: MosDevice = await this.mos.connect(deviceOptions)
492497
this._ownMosDevices[deviceId] = mosDevice
493498

0 commit comments

Comments
 (0)