JSSE: correct reset of closing state in WolfSSLInputStream/OutputStream

pull/233/head
Chris Conlon 2024-11-22 17:16:26 -07:00
parent 36f54b02e8
commit ed3db7a92c
1 changed files with 4 additions and 0 deletions

View File

@ -2501,6 +2501,8 @@ public class WolfSSLSocket extends SSLSocket {
if (closeSocket) {
if (this.socket == null || this.isClosed) {
/* Reset "is closing" state to false and return */
isClosing.set(false);
return;
}
@ -2719,6 +2721,8 @@ public class WolfSSLSocket extends SSLSocket {
if (closeSocket) {
if (this.socket == null || this.isClosed) {
/* Reset "is closing" state to false and return */
isClosing.set(false);
return;
}