diff --git a/src/ripple/module/overlay/impl/PeerImp.h b/src/ripple/module/overlay/impl/PeerImp.h index e540e00b1..b91c82697 100644 --- a/src/ripple/module/overlay/impl/PeerImp.h +++ b/src/ripple/module/overlay/impl/PeerImp.h @@ -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");