Don't throw away an initial error when detecting the handshake.

This commit is contained in:
JoelKatz
2013-11-17 23:45:34 -08:00
parent 02b5572ccc
commit 474b824902

View File

@@ -889,7 +889,7 @@ protected:
{
error_code ec (ec_);
do
while (!ec)
{
if (m_owner.m_state == stateReady)
{
@@ -973,7 +973,6 @@ protected:
ec = m_owner.handshake_error ();
}
}
while (! ec);
bassert (ec || (m_owner.m_state == stateReady && m_owner.m_needsShutdown));