remove always true if-predicate (gcc-5 -Wlogical-op)
[folly.git] / folly / io / async / AsyncSSLSocket.cpp
index 7bb4ace71986afc739746aefcce05185cb43e1c3..20cc963055fe4784c758c5e509f9ec87a434707d 100644 (file)
@@ -414,10 +414,7 @@ void AsyncSSLSocket::invalidState(HandshakeCB* callback) {
     callback->handshakeErr(this, ex);
   }
 
-  // Check the socket state not the ssl state here.
-  if (state_ != StateEnum::CLOSED || state_ != StateEnum::ERROR) {
-    failHandshake(__func__, ex);
-  }
+  failHandshake(__func__, ex);
 }
 
 void AsyncSSLSocket::sslAccept(