Fix the socket closing issue with WolfSSLSocket

pull/194/head
Sage Stefonic 2024-05-20 09:58:03 -07:00
parent b08237d910
commit 06d8e4de66
1 changed files with 1 additions and 5 deletions

View File

@ -46,7 +46,6 @@ public class WolfSSLServerSocket extends SSLServerSocket {
private boolean clientMode = false;
private boolean enableSessionCreation = true;
private WolfSSLSocket socket = null;
private WolfSSLDebug debug;
/**
@ -368,7 +367,7 @@ public class WolfSSLServerSocket extends SSLServerSocket {
sock.getPort());
/* create new WolfSSLSocket wrapping connected Socket */
socket = new WolfSSLSocket(context, authStore, params,
WolfSSLSocket socket = new WolfSSLSocket(context, authStore, params,
clientMode, sock, true);
socket.setEnableSessionCreation(enableSessionCreation);
@ -378,9 +377,6 @@ public class WolfSSLServerSocket extends SSLServerSocket {
@Override
public synchronized void close() throws IOException {
if (this.socket != null) {
this.socket.close();
}
super.close();
}
}