Don't log "TLS Handshaking" twice or more

pull/141/head
Tatsuhiro Tsujikawa 2013-10-07 23:01:51 +09:00
parent c2ae77dff4
commit 98d88ec6d5
1 changed files with 1 additions and 1 deletions

View File

@ -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 {