mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-14 16:15:51 +00:00
Fix the assert on a self-connect
This commit is contained in:
@@ -280,7 +280,8 @@ public:
|
|||||||
if (iter != state->slots.end ())
|
if (iter != state->slots.end ())
|
||||||
{
|
{
|
||||||
Slot::ptr const& self (iter->second);
|
Slot::ptr const& self (iter->second);
|
||||||
assert (self->local_endpoint () == remote_endpoint);
|
assert ((self->local_endpoint () == boost::none) ||
|
||||||
|
(self->local_endpoint () == remote_endpoint));
|
||||||
if (m_journal.warning) m_journal.warning << leftw (18) <<
|
if (m_journal.warning) m_journal.warning << leftw (18) <<
|
||||||
"Logic dropping " << remote_endpoint <<
|
"Logic dropping " << remote_endpoint <<
|
||||||
" as self connect";
|
" as self connect";
|
||||||
|
|||||||
Reference in New Issue
Block a user