Skip to content

Commit 72c765f

Browse files
committed
fix: MosGateway hotstandby - send message for both servers if both connections are offline
1 parent e49715e commit 72c765f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mos-gateway/src/CoreMosDeviceHandler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export class CoreMosDeviceHandler {
152152
messages.push(connectionStatus.SecondaryStatus || 'Running NRCS on hot standby')
153153
} else {
154154
statusCode = StatusCode.BAD
155+
// Send messages for both connections
156+
messages.push(connectionStatus.PrimaryStatus || 'Primary and hot standby are not connected')
155157
messages.push(connectionStatus.SecondaryStatus || 'Primary and hot standby are not connected')
156158
}
157159
}

0 commit comments

Comments
 (0)