Small improvement

This commit is contained in:
M66B
2023-09-08 18:51:55 +02:00
parent ab3404f045
commit df891acc75
2 changed files with 5 additions and 2 deletions

View File

@@ -1337,7 +1337,7 @@ public class EmailService implements AutoCloseable {
" reuse=" + reuse +
" delay=" + delay);
if (keepAlive || BuildConfig.DEBUG) {
if (keepAlive) {
Log.e("Socket keep-alive=" + keepAlive);
socket.setKeepAlive(false); // sets SOL_SOCKET/SO_KEEPALIVE
}