Skip to content

Commit

Permalink
Fix missing try-catch in NetworkSettingsViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Feb 22, 2024
1 parent f4be145 commit fe857f6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ class NetworkSettingsViewModel @Inject constructor(

private fun ensureRelayPoolUpdatedAndConnected() =
viewModelScope.launch {
relayRepository.fetchAndUpdateUserRelays(userId = activeAccountStore.activeUserId())
try {
relayRepository.fetchAndUpdateUserRelays(userId = activeAccountStore.activeUserId())
} catch (error: WssException) {
Timber.w(error)
}
delay(1.seconds)
relaysSocketManager.ensureUserRelayPoolConnected()
}
Expand Down

0 comments on commit fe857f6

Please sign in to comment.