Always retry with user/name

This commit is contained in:
M66B 2020-05-26 21:08:56 +02:00
parent 7102eb3812
commit 9136f61301
1 changed files with 3 additions and 1 deletions

View File

@ -309,7 +309,9 @@ public class FragmentQuickSetup extends FragmentBase {
null, imap_fingerprint);
} else
throw ex;
} catch (AuthenticationFailedException ex) {
} catch (Throwable ex) {
// Why not AuthenticationFailedException?
// Some providers refuse connection with an invalid username
if (!user.equals(username)) {
Log.w(ex);
user = username;