Loading mail/protocols/imap/src/test/java/com/fsck/k9/mail/store/imap/mockserver/MockImapServer.java +3 −4 Original line number Diff line number Diff line Loading @@ -282,8 +282,6 @@ public class MockImapServer { while (!shouldStop) { readAdditionalCommands(); } waitForConnectionClosed.countDown(); } catch (UnexpectedCommandException e) { unexpectedCommandException = e; } catch (IOException e) { Loading @@ -293,9 +291,10 @@ public class MockImapServer { } catch (KeyStoreException | CertificateException | UnrecoverableKeyException | NoSuchAlgorithmException | KeyManagementException e) { throw new RuntimeException(e); } } finally { waitForConnectionClosed.countDown(); IOUtils.closeQuietly(socket); } logger.log("Exiting"); } Loading mail/protocols/pop3/src/main/java/com/fsck/k9/mail/store/pop3/Pop3Connection.java +2 −0 Original line number Diff line number Diff line Loading @@ -82,12 +82,14 @@ class Pop3Connection { performAuthentication(settings.getAuthType(), serverGreeting); } catch (SSLException e) { close(); if (e.getCause() instanceof CertificateException) { throw new CertificateValidationException(e.getMessage(), e); } else { throw new MessagingException("Unable to connect", e); } } catch (GeneralSecurityException gse) { close(); throw new MessagingException( "Unable to open connection to POP server due to security error.", gse); } catch (IOException ioe) { Loading mail/protocols/pop3/src/test/java/com/fsck/k9/mail/store/pop3/MockPop3Server.java +3 −4 Original line number Diff line number Diff line Loading @@ -282,8 +282,6 @@ public class MockPop3Server { while (!shouldStop) { readAdditionalCommands(); } waitForConnectionClosed.countDown(); } catch (UnexpectedCommandException e) { unexpectedCommandException = e; } catch (IOException e) { Loading @@ -293,9 +291,10 @@ public class MockPop3Server { } catch (KeyStoreException | CertificateException | UnrecoverableKeyException | NoSuchAlgorithmException | KeyManagementException e) { throw new RuntimeException(e); } } finally { waitForConnectionClosed.countDown(); IOUtils.closeQuietly(socket); } logger.log("Exiting"); } Loading mail/protocols/smtp/src/test/java/com/fsck/k9/mail/transport/mockServer/MockSmtpServer.java +3 −4 Original line number Diff line number Diff line Loading @@ -284,8 +284,6 @@ public class MockSmtpServer { while (!shouldStop) { readAdditionalCommands(); } waitForConnectionClosed.countDown(); } catch (UnexpectedCommandException e) { unexpectedCommandException = e; } catch (IOException e) { Loading @@ -295,9 +293,10 @@ public class MockSmtpServer { } catch (KeyStoreException | CertificateException | UnrecoverableKeyException | NoSuchAlgorithmException | KeyManagementException e) { throw new RuntimeException(e); } } finally { waitForConnectionClosed.countDown(); IOUtils.closeQuietly(socket); } logger.log("Exiting"); } Loading Loading
mail/protocols/imap/src/test/java/com/fsck/k9/mail/store/imap/mockserver/MockImapServer.java +3 −4 Original line number Diff line number Diff line Loading @@ -282,8 +282,6 @@ public class MockImapServer { while (!shouldStop) { readAdditionalCommands(); } waitForConnectionClosed.countDown(); } catch (UnexpectedCommandException e) { unexpectedCommandException = e; } catch (IOException e) { Loading @@ -293,9 +291,10 @@ public class MockImapServer { } catch (KeyStoreException | CertificateException | UnrecoverableKeyException | NoSuchAlgorithmException | KeyManagementException e) { throw new RuntimeException(e); } } finally { waitForConnectionClosed.countDown(); IOUtils.closeQuietly(socket); } logger.log("Exiting"); } Loading
mail/protocols/pop3/src/main/java/com/fsck/k9/mail/store/pop3/Pop3Connection.java +2 −0 Original line number Diff line number Diff line Loading @@ -82,12 +82,14 @@ class Pop3Connection { performAuthentication(settings.getAuthType(), serverGreeting); } catch (SSLException e) { close(); if (e.getCause() instanceof CertificateException) { throw new CertificateValidationException(e.getMessage(), e); } else { throw new MessagingException("Unable to connect", e); } } catch (GeneralSecurityException gse) { close(); throw new MessagingException( "Unable to open connection to POP server due to security error.", gse); } catch (IOException ioe) { Loading
mail/protocols/pop3/src/test/java/com/fsck/k9/mail/store/pop3/MockPop3Server.java +3 −4 Original line number Diff line number Diff line Loading @@ -282,8 +282,6 @@ public class MockPop3Server { while (!shouldStop) { readAdditionalCommands(); } waitForConnectionClosed.countDown(); } catch (UnexpectedCommandException e) { unexpectedCommandException = e; } catch (IOException e) { Loading @@ -293,9 +291,10 @@ public class MockPop3Server { } catch (KeyStoreException | CertificateException | UnrecoverableKeyException | NoSuchAlgorithmException | KeyManagementException e) { throw new RuntimeException(e); } } finally { waitForConnectionClosed.countDown(); IOUtils.closeQuietly(socket); } logger.log("Exiting"); } Loading
mail/protocols/smtp/src/test/java/com/fsck/k9/mail/transport/mockServer/MockSmtpServer.java +3 −4 Original line number Diff line number Diff line Loading @@ -284,8 +284,6 @@ public class MockSmtpServer { while (!shouldStop) { readAdditionalCommands(); } waitForConnectionClosed.countDown(); } catch (UnexpectedCommandException e) { unexpectedCommandException = e; } catch (IOException e) { Loading @@ -295,9 +293,10 @@ public class MockSmtpServer { } catch (KeyStoreException | CertificateException | UnrecoverableKeyException | NoSuchAlgorithmException | KeyManagementException e) { throw new RuntimeException(e); } } finally { waitForConnectionClosed.countDown(); IOUtils.closeQuietly(socket); } logger.log("Exiting"); } Loading