diff --git a/Source/cryptalgo/SecureSocketPort.h b/Source/cryptalgo/SecureSocketPort.h index 052333263..49c5d5ed1 100644 --- a/Source/cryptalgo/SecureSocketPort.h +++ b/Source/cryptalgo/SecureSocketPort.h @@ -105,7 +105,7 @@ namespace Crypto { // Signal a state change, Opened, Closed or Accepted void StateChange() override { - if (IsOpen() && _context != nullptr) { // Initialize may not yet have happened + if (IsOpen() && _context == nullptr) { // Initialize may not yet have happened Initialize(); }