mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Wait for installing security provider
This commit is contained in:
@@ -1212,12 +1212,14 @@ public class EmailService implements AutoCloseable {
|
||||
|
||||
@Override
|
||||
public Socket createSocket(String host, int port) throws IOException {
|
||||
ApplicationSecure.waitProviderInstalled();
|
||||
return configure(factory.createSocket(server, port));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException {
|
||||
configureSocketOptions(s);
|
||||
ApplicationSecure.waitProviderInstalled();
|
||||
return configure(factory.createSocket(s, server, port, autoClose));
|
||||
}
|
||||
|
||||
@@ -1229,6 +1231,7 @@ public class EmailService implements AutoCloseable {
|
||||
|
||||
@Override
|
||||
public Socket createSocket(String host, int port, InetAddress clientAddress, int clientPort) throws IOException {
|
||||
ApplicationSecure.waitProviderInstalled();
|
||||
return configure(factory.createSocket(server, port, clientAddress, clientPort));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user