JSSE: correct reset of closing state in WolfSSLInputStream/OutputStream
parent
36f54b02e8
commit
ed3db7a92c
|
@ -2501,6 +2501,8 @@ public class WolfSSLSocket extends SSLSocket {
|
||||||
|
|
||||||
if (closeSocket) {
|
if (closeSocket) {
|
||||||
if (this.socket == null || this.isClosed) {
|
if (this.socket == null || this.isClosed) {
|
||||||
|
/* Reset "is closing" state to false and return */
|
||||||
|
isClosing.set(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2719,6 +2721,8 @@ public class WolfSSLSocket extends SSLSocket {
|
||||||
|
|
||||||
if (closeSocket) {
|
if (closeSocket) {
|
||||||
if (this.socket == null || this.isClosed) {
|
if (this.socket == null || this.isClosed) {
|
||||||
|
/* Reset "is closing" state to false and return */
|
||||||
|
isClosing.set(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue