Browse Source

Don't log "TLS Handshaking" twice or more

Tatsuhiro Tsujikawa 12 years ago
parent
commit
98d88ec6d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/SocketCore.cc

+ 1 - 1
src/SocketCore.cc

@@ -834,9 +834,9 @@ bool SocketCore::tlsHandshake(TLSContext* tlsctx, const std::string& hostname)
       }
     }
     secure_ = A2_TLS_HANDSHAKING;
+    A2_LOG_DEBUG("TLS Handshaking");
     // Fall through
   case A2_TLS_HANDSHAKING:
-    A2_LOG_DEBUG("TLS Handshaking");
     if(tlsctx->getSide() == TLS_CLIENT) {
       rv = tlsSession_->tlsConnect(hostname, handshakeError);
     } else {