From 2309cac713e490edde42f3fb3bbf5a643f0b47dd Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 9 Aug 2020 13:54:12 +0200 Subject: [PATCH] Refactoring --- .../main/java/eu/faircode/email/EmailService.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index f2b7fe4a82..443032b4f9 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -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