Fix state check in PeerImp::recvHello

This commit is contained in:
Vinnie Falco
2014-06-16 18:11:33 -07:00
committed by Nik Bougalis
parent dcf4ad2c21
commit 4e07dbbefc

View File

@@ -829,7 +829,7 @@ private:
// and it must be received *exactly* once during a connection; any
// other scenario constitutes a protocol violation.
if ((m_state == stateHandshaked) && (type == protocol::mtHELLO))
if ((m_state == stateConnected) && (type != protocol::mtHELLO))
{
m_journal.warning << "Protocol: HELLO expected!";
detach ("prb-hello-expected");