mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user