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()"); "Handshake attempt failed in SSLSocket.getSession()");
/* close SSLSocket */ /* close SSLSocket */
if (this.socket != null && !this.socket.isClosed()) {
try { try {
close(); close();
} catch (Exception ex) { } catch (Exception ex) {
WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO,
"close attempt failed in SSLSocket.getSession(): " + "close attempt failed in SSLSocket.getSession(): " + ex);
ex);
}
} }
/* return invalid session object with cipher suite /* return invalid session object with cipher suite
* "SSL_NULL_WITH_NULL_NULL" */ * "SSL_NULL_WITH_NULL_NULL" */
return new WolfSSLImplementSSLSession(this.authStore); return new WolfSSLImplementSSLSession(this.authStore);