mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Refactoring
This commit is contained in:
parent
d7d0f244e9
commit
2309cac713
1 changed files with 7 additions and 6 deletions
|
@ -365,12 +365,13 @@ public class EmailService implements AutoCloseable {
|
|||
throw ex;
|
||||
} catch (MailConnectException ex) {
|
||||
if (ConnectionHelper.vpnActive(context)) {
|
||||
MailConnectException mex = new MailConnectException(new SocketConnectException(
|
||||
context.getString(R.string.title_service_vpn),
|
||||
new Exception(),
|
||||
ex.getHost(),
|
||||
ex.getPort(),
|
||||
ex.getConnectionTimeout()));
|
||||
MailConnectException mex = new MailConnectException(
|
||||
new SocketConnectException(
|
||||
context.getString(R.string.title_service_vpn),
|
||||
new Exception(),
|
||||
ex.getHost(),
|
||||
ex.getPort(),
|
||||
ex.getConnectionTimeout()));
|
||||
mex.setNextException(ex.getNextException());
|
||||
throw mex;
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue