Prevent IMO retries when network unavailable.

This commit is contained in:
Cody Henthorne authored and Jeffrey Starke committed 2025-07-16 12:42:36 -04:00
1 parent 269d5752c4
commit 2148eb8760
1 file changed
+1 -1
@@ -249,7 +249,7 @@ class IncomingMessageObserver(
}
private fun isConnectionAvailable(): Boolean {
return authWebSocket.stateSnapshot == WebSocketConnectionState.CONNECTED || authWebSocket.shouldSendKeepAlives()
return authWebSocket.stateSnapshot == WebSocketConnectionState.CONNECTED || (authWebSocket.shouldSendKeepAlives() && NetworkConstraint.isMet(context))
}
private fun waitForConnectionNecessary() {