mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix state check in PeerImp::recvHello
This commit is contained in:
committed by
Nik Bougalis
parent
dcf4ad2c21
commit
4e07dbbefc
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user