Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1333937 - Rely on the handshake callback for detecting connection…
… success, r=franziskus

Differential Revision: https://nss-review.dev.mozaws.net/D175

--HG--
extra : rebase_source : 6eca9e1513f10bf0d9296b10ad31de2d8bf967fe
extra : amend_source : b80e342d8f703c0d57097abc9d5341e5619a9abf
  • Loading branch information
martinthomson committed Jan 29, 2017
1 parent a9498d3 commit d9b8a08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gtests/ssl_gtest/tls_agent.cc
Expand Up @@ -735,7 +735,8 @@ void TlsAgent::Handshake() {
LOGV("Handshake");
SECStatus rv = SSL_ForceHandshake(ssl_fd_);
if (rv == SECSuccess) {
Connected();
EXPECT_EQ(STATE_CONNECTED, state_)
<< "the handshake callback should have been called already";

Poller::Instance()->Wait(READABLE_EVENT, adapter_, this,
&TlsAgent::ReadableCallback);
Expand Down

0 comments on commit d9b8a08

Please sign in to comment.