Close connection on boundary end

This commit is contained in:
M66B
2020-07-27 15:52:50 +02:00
parent 0234827b41
commit 7460f960c3
2 changed files with 17 additions and 7 deletions

View File

@@ -674,6 +674,10 @@ public class EmailService implements AutoCloseable {
return false;
}
public boolean isOpen() {
return (iservice != null && iservice.isConnected());
}
public void close() throws MessagingException {
try {
if (iservice != null && iservice.isConnected())