Skip to content

Commit

Permalink
fix: change the server address to the backup one if the first address…
Browse files Browse the repository at this point in the history
… is unreachable
  • Loading branch information
CappielloAntonio committed Nov 6, 2024
1 parent fd0fd05 commit e8e2435
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void onServerClick(Bundle bundle) {
systemRepository.checkUserCredential(new SystemCallback() {
@Override
public void onError(Exception exception) {
Preferences.switchInUseServerAddress();
resetServerPreference();
Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_SHORT).show();
}
Expand Down

0 comments on commit e8e2435

Please sign in to comment.