Skip to content

Commit

Permalink
Propagate reconnect errors to the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Jul 31, 2024
1 parent 1b86a4d commit 3ecf40b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ class ConnectViewModel(
}

fun onReconnectClick() {
viewModelScope.launch { connectionProxy.reconnect() }
viewModelScope.launch { connectionProxy.reconnect().onLeft {
_uiSideEffect.send(UiSideEffect.ConnectError.Generic)
} }
}

fun onConnectClick() {
Expand Down

0 comments on commit 3ecf40b

Please sign in to comment.