Skip to content

Commit

Permalink
fix: dis-/en-able heartbeat when openMediaHotStandby
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Oct 8, 2024
1 parent ce68543 commit e2fe446
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mos-gateway/src/mosHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ export class MosHandler {
deviceOptions.primary.heartbeatInterval =
deviceOptions.primary.heartbeatInterval || DEFAULT_MOS_HEARTBEAT_INTERVAL

if (deviceOptions.secondary?.id && this._openMediaHotStandby[deviceOptions.secondary.id]) {
//@ts-expect-error this is not yet added to the official mos-connection
deviceOptions.secondary.openMediaHotStandby = true
}

const mosDevice: MosDevice = await this.mos.connect(deviceOptions)
this._ownMosDevices[deviceId] = mosDevice

Expand Down

0 comments on commit e2fe446

Please sign in to comment.