Skip to content

Commit

Permalink
fix: disable-enable heartbeat when using open media hot standby
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Oct 8, 2024
1 parent 680c3e0 commit cf26853
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 cf26853

Please sign in to comment.