Refactoring

pull/184/head
M66B 4 years ago
parent d7d0f244e9
commit 2309cac713

@ -365,12 +365,13 @@ public class EmailService implements AutoCloseable {
throw ex; throw ex;
} catch (MailConnectException ex) { } catch (MailConnectException ex) {
if (ConnectionHelper.vpnActive(context)) { if (ConnectionHelper.vpnActive(context)) {
MailConnectException mex = new MailConnectException(new SocketConnectException( MailConnectException mex = new MailConnectException(
context.getString(R.string.title_service_vpn), new SocketConnectException(
new Exception(), context.getString(R.string.title_service_vpn),
ex.getHost(), new Exception(),
ex.getPort(), ex.getHost(),
ex.getConnectionTimeout())); ex.getPort(),
ex.getConnectionTimeout()));
mex.setNextException(ex.getNextException()); mex.setNextException(ex.getNextException());
throw mex; throw mex;
} else } else

Loading…
Cancel
Save