remove check socket closed check

pull/205/head
Sage Stefonic 2024-06-27 11:12:06 -07:00
parent b0e7bf31f8
commit ab159d4108
1 changed files with 6 additions and 8 deletions

View File

@ -1299,15 +1299,13 @@ public class WolfSSLSocket extends SSLSocket {
"Handshake attempt failed in SSLSocket.getSession()");
/* close SSLSocket */
if (this.socket != null && !this.socket.isClosed()) {
try {
close();
} catch (Exception ex) {
WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO,
"close attempt failed in SSLSocket.getSession(): " +
ex);
}
"close attempt failed in SSLSocket.getSession(): " + ex);
}
/* return invalid session object with cipher suite
* "SSL_NULL_WITH_NULL_NULL" */
return new WolfSSLImplementSSLSession(this.authStore);