Refactoring

This commit is contained in:
M66B
2021-10-08 10:32:50 +02:00
parent 66be450dc9
commit 858f2038f3
3 changed files with 8 additions and 8 deletions

View File

@@ -149,12 +149,6 @@ public class EmailService implements AutoCloseable {
// TLS_FALLBACK_SCSV https://tools.ietf.org/html/rfc7507
// TLS_EMPTY_RENEGOTIATION_INFO_SCSV https://tools.ietf.org/html/rfc5746
static {
System.loadLibrary("fairemail");
}
private static native int jni_socket_keep_alive(int fd, int seconds);
private EmailService() {
// Prevent instantiation
}
@@ -1068,7 +1062,7 @@ public class EmailService implements AutoCloseable {
Log.i("Enabling TCP keep alive");
int fd = ParcelFileDescriptor.fromSocket(socket).getFd();
int errno = jni_socket_keep_alive(fd, TCP_KEEP_ALIVE_INTERVAL);
int errno = ConnectionHelper.jni_socket_keep_alive(fd, TCP_KEEP_ALIVE_INTERVAL);
if (errno == 0)
Log.i("Enabled TCP keep alive");
else